mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Merge branch 'dev' into vornado-ir
This commit is contained in:
		| @@ -396,75 +396,87 @@ def add_hello_world(config): | |||||||
|  |  | ||||||
| FINAL_VALIDATE_SCHEMA = final_validation | FINAL_VALIDATE_SCHEMA = final_validation | ||||||
|  |  | ||||||
| LVGL_SCHEMA = ( | LVGL_SCHEMA = cv.All( | ||||||
|     cv.polling_component_schema("1s") |     container_schema( | ||||||
|     .extend(obj_schema(LvScrActType())) |         obj_spec, | ||||||
|     .extend( |         cv.polling_component_schema("1s") | ||||||
|         { |         .extend( | ||||||
|             cv.GenerateID(CONF_ID): cv.declare_id(LvglComponent), |             { | ||||||
|             cv.GenerateID(df.CONF_DISPLAYS): display_schema, |                 cv.GenerateID(CONF_ID): cv.declare_id(LvglComponent), | ||||||
|             cv.Optional(df.CONF_COLOR_DEPTH, default=16): cv.one_of(16), |                 cv.GenerateID(df.CONF_DISPLAYS): display_schema, | ||||||
|             cv.Optional(df.CONF_DEFAULT_FONT, default="montserrat_14"): lvalid.lv_font, |                 cv.Optional(df.CONF_COLOR_DEPTH, default=16): cv.one_of(16), | ||||||
|             cv.Optional(df.CONF_FULL_REFRESH, default=False): cv.boolean, |                 cv.Optional( | ||||||
|             cv.Optional(df.CONF_DRAW_ROUNDING, default=2): cv.positive_int, |                     df.CONF_DEFAULT_FONT, default="montserrat_14" | ||||||
|             cv.Optional(CONF_BUFFER_SIZE, default="100%"): cv.percentage, |                 ): lvalid.lv_font, | ||||||
|             cv.Optional(df.CONF_LOG_LEVEL, default="WARN"): cv.one_of( |                 cv.Optional(df.CONF_FULL_REFRESH, default=False): cv.boolean, | ||||||
|                 *df.LV_LOG_LEVELS, upper=True |                 cv.Optional(df.CONF_DRAW_ROUNDING, default=2): cv.positive_int, | ||||||
|             ), |                 cv.Optional(CONF_BUFFER_SIZE, default="100%"): cv.percentage, | ||||||
|             cv.Optional(df.CONF_BYTE_ORDER, default="big_endian"): cv.one_of( |                 cv.Optional(df.CONF_LOG_LEVEL, default="WARN"): cv.one_of( | ||||||
|                 "big_endian", "little_endian" |                     *df.LV_LOG_LEVELS, upper=True | ||||||
|             ), |                 ), | ||||||
|             cv.Optional(df.CONF_STYLE_DEFINITIONS): cv.ensure_list( |                 cv.Optional(df.CONF_BYTE_ORDER, default="big_endian"): cv.one_of( | ||||||
|                 cv.Schema({cv.Required(CONF_ID): cv.declare_id(lv_style_t)}) |                     "big_endian", "little_endian" | ||||||
|                 .extend(STYLE_SCHEMA) |                 ), | ||||||
|                 .extend( |                 cv.Optional(df.CONF_STYLE_DEFINITIONS): cv.ensure_list( | ||||||
|  |                     cv.Schema({cv.Required(CONF_ID): cv.declare_id(lv_style_t)}) | ||||||
|  |                     .extend(STYLE_SCHEMA) | ||||||
|  |                     .extend( | ||||||
|  |                         { | ||||||
|  |                             cv.Optional(df.CONF_GRID_CELL_X_ALIGN): grid_alignments, | ||||||
|  |                             cv.Optional(df.CONF_GRID_CELL_Y_ALIGN): grid_alignments, | ||||||
|  |                             cv.Optional(df.CONF_PAD_ROW): lvalid.pixels, | ||||||
|  |                             cv.Optional(df.CONF_PAD_COLUMN): lvalid.pixels, | ||||||
|  |                         } | ||||||
|  |                     ) | ||||||
|  |                 ), | ||||||
|  |                 cv.Optional(CONF_ON_IDLE): validate_automation( | ||||||
|                     { |                     { | ||||||
|                         cv.Optional(df.CONF_GRID_CELL_X_ALIGN): grid_alignments, |                         cv.GenerateID(CONF_TRIGGER_ID): cv.declare_id(IdleTrigger), | ||||||
|                         cv.Optional(df.CONF_GRID_CELL_Y_ALIGN): grid_alignments, |                         cv.Required(CONF_TIMEOUT): cv.templatable( | ||||||
|                         cv.Optional(df.CONF_PAD_ROW): lvalid.pixels, |                             cv.positive_time_period_milliseconds | ||||||
|                         cv.Optional(df.CONF_PAD_COLUMN): lvalid.pixels, |                         ), | ||||||
|                     } |                     } | ||||||
|                 ) |                 ), | ||||||
|             ), |                 cv.Optional(df.CONF_ON_PAUSE): validate_automation( | ||||||
|             cv.Optional(CONF_ON_IDLE): validate_automation( |                     { | ||||||
|                 { |                         cv.GenerateID(CONF_TRIGGER_ID): cv.declare_id(PauseTrigger), | ||||||
|                     cv.GenerateID(CONF_TRIGGER_ID): cv.declare_id(IdleTrigger), |                     } | ||||||
|                     cv.Required(CONF_TIMEOUT): cv.templatable( |                 ), | ||||||
|                         cv.positive_time_period_milliseconds |                 cv.Optional(df.CONF_ON_RESUME): validate_automation( | ||||||
|                     ), |                     { | ||||||
|                 } |                         cv.GenerateID(CONF_TRIGGER_ID): cv.declare_id(PauseTrigger), | ||||||
|             ), |                     } | ||||||
|             cv.Optional(df.CONF_ON_PAUSE): validate_automation( |                 ), | ||||||
|                 { |                 cv.Exclusive(df.CONF_WIDGETS, CONF_PAGES): cv.ensure_list( | ||||||
|                     cv.GenerateID(CONF_TRIGGER_ID): cv.declare_id(PauseTrigger), |                     WIDGET_SCHEMA | ||||||
|                 } |                 ), | ||||||
|             ), |                 cv.Exclusive(CONF_PAGES, CONF_PAGES): cv.ensure_list( | ||||||
|             cv.Optional(df.CONF_ON_RESUME): validate_automation( |                     container_schema(page_spec) | ||||||
|                 { |                 ), | ||||||
|                     cv.GenerateID(CONF_TRIGGER_ID): cv.declare_id(PauseTrigger), |                 cv.Optional(df.CONF_MSGBOXES): cv.ensure_list(MSGBOX_SCHEMA), | ||||||
|                 } |                 cv.Optional(df.CONF_PAGE_WRAP, default=True): lv_bool, | ||||||
|             ), |                 cv.Optional(df.CONF_TOP_LAYER): container_schema(obj_spec), | ||||||
|             cv.Exclusive(df.CONF_WIDGETS, CONF_PAGES): cv.ensure_list(WIDGET_SCHEMA), |                 cv.Optional( | ||||||
|             cv.Exclusive(CONF_PAGES, CONF_PAGES): cv.ensure_list( |                     df.CONF_TRANSPARENCY_KEY, default=0x000400 | ||||||
|                 container_schema(page_spec) |                 ): lvalid.lv_color, | ||||||
|             ), |                 cv.Optional(df.CONF_THEME): cv.Schema( | ||||||
|             cv.Optional(df.CONF_MSGBOXES): cv.ensure_list(MSGBOX_SCHEMA), |                     { | ||||||
|             cv.Optional(df.CONF_PAGE_WRAP, default=True): lv_bool, |                         cv.Optional(name): obj_schema(w) | ||||||
|             cv.Optional(df.CONF_TOP_LAYER): container_schema(obj_spec), |                         for name, w in WIDGET_TYPES.items() | ||||||
|             cv.Optional(df.CONF_TRANSPARENCY_KEY, default=0x000400): lvalid.lv_color, |                     } | ||||||
|             cv.Optional(df.CONF_THEME): cv.Schema( |                 ), | ||||||
|                 {cv.Optional(name): obj_schema(w) for name, w in WIDGET_TYPES.items()} |                 cv.Optional(df.CONF_GRADIENTS): GRADIENT_SCHEMA, | ||||||
|             ), |                 cv.Optional(df.CONF_TOUCHSCREENS, default=None): touchscreen_schema, | ||||||
|             cv.Optional(df.CONF_GRADIENTS): GRADIENT_SCHEMA, |                 cv.Optional(df.CONF_ENCODERS, default=None): ENCODERS_CONFIG, | ||||||
|             cv.Optional(df.CONF_TOUCHSCREENS, default=None): touchscreen_schema, |                 cv.Optional(df.CONF_KEYPADS, default=None): KEYPADS_CONFIG, | ||||||
|             cv.Optional(df.CONF_ENCODERS, default=None): ENCODERS_CONFIG, |                 cv.GenerateID(df.CONF_DEFAULT_GROUP): cv.declare_id(lv_group_t), | ||||||
|             cv.Optional(df.CONF_KEYPADS, default=None): KEYPADS_CONFIG, |                 cv.Optional(df.CONF_RESUME_ON_INPUT, default=True): cv.boolean, | ||||||
|             cv.GenerateID(df.CONF_DEFAULT_GROUP): cv.declare_id(lv_group_t), |             } | ||||||
|             cv.Optional(df.CONF_RESUME_ON_INPUT, default=True): cv.boolean, |         ) | ||||||
|         } |         .extend(DISP_BG_SCHEMA), | ||||||
|     ) |     ), | ||||||
|     .extend(DISP_BG_SCHEMA) |     cv.has_at_most_one_key(CONF_PAGES, df.CONF_LAYOUT), | ||||||
|     .add_extra(add_hello_world) |     add_hello_world, | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| from esphome.const import CONF_ID |  | ||||||
| import esphome.codegen as cg | import esphome.codegen as cg | ||||||
| import esphome.config_validation as cv | import esphome.config_validation as cv | ||||||
|  | from esphome.const import CONF_ID | ||||||
|  |  | ||||||
| CODEOWNERS = ["@esphome/core"] | CODEOWNERS = ["@esphome/core"] | ||||||
|  |  | ||||||
| @@ -11,9 +11,7 @@ CONF_FLASH_WRITE_INTERVAL = "flash_write_interval" | |||||||
| CONFIG_SCHEMA = cv.Schema( | CONFIG_SCHEMA = cv.Schema( | ||||||
|     { |     { | ||||||
|         cv.GenerateID(): cv.declare_id(IntervalSyncer), |         cv.GenerateID(): cv.declare_id(IntervalSyncer), | ||||||
|         cv.Optional( |         cv.Optional(CONF_FLASH_WRITE_INTERVAL, default="60s"): cv.update_interval, | ||||||
|             CONF_FLASH_WRITE_INTERVAL, default="60s" |  | ||||||
|         ): cv.positive_time_period_milliseconds, |  | ||||||
|     } |     } | ||||||
| ).extend(cv.COMPONENT_SCHEMA) | ).extend(cv.COMPONENT_SCHEMA) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -8,15 +8,22 @@ namespace preferences { | |||||||
|  |  | ||||||
| class IntervalSyncer : public Component { | class IntervalSyncer : public Component { | ||||||
|  public: |  public: | ||||||
|   void set_write_interval(uint32_t write_interval) { write_interval_ = write_interval; } |   void set_write_interval(uint32_t write_interval) { this->write_interval_ = write_interval; } | ||||||
|   void setup() override { |   void setup() override { | ||||||
|     set_interval(write_interval_, []() { global_preferences->sync(); }); |     if (this->write_interval_ != 0) { | ||||||
|  |       set_interval(this->write_interval_, []() { global_preferences->sync(); }); | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  |   void loop() override { | ||||||
|  |     if (this->write_interval_ == 0) { | ||||||
|  |       global_preferences->sync(); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|   void on_shutdown() override { global_preferences->sync(); } |   void on_shutdown() override { global_preferences->sync(); } | ||||||
|   float get_setup_priority() const override { return setup_priority::BUS; } |   float get_setup_priority() const override { return setup_priority::BUS; } | ||||||
|  |  | ||||||
|  protected: |  protected: | ||||||
|   uint32_t write_interval_; |   uint32_t write_interval_{60000}; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| }  // namespace preferences | }  // namespace preferences | ||||||
|   | |||||||
| @@ -77,6 +77,12 @@ void PrometheusHandler::handleRequest(AsyncWebServerRequest *req) { | |||||||
|     this->media_player_row_(stream, obj, area, node, friendly_name); |     this->media_player_row_(stream, obj, area, node, friendly_name); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #ifdef USE_UPDATE | ||||||
|  |   this->update_entity_type_(stream); | ||||||
|  |   for (auto *obj : App.get_updates()) | ||||||
|  |     this->update_entity_row_(stream, obj, area, node, friendly_name); | ||||||
|  | #endif | ||||||
|  |  | ||||||
|   req->send(stream); |   req->send(stream); | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -679,6 +685,91 @@ void PrometheusHandler::media_player_row_(AsyncResponseStream *stream, media_pla | |||||||
| } | } | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #ifdef USE_UPDATE | ||||||
|  | void PrometheusHandler::update_entity_type_(AsyncResponseStream *stream) { | ||||||
|  |   stream->print(F("#TYPE esphome_update_entity_state gauge\n")); | ||||||
|  |   stream->print(F("#TYPE esphome_update_entity_info gauge\n")); | ||||||
|  |   stream->print(F("#TYPE esphome_update_entity_failed gauge\n")); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void PrometheusHandler::handle_update_state_(AsyncResponseStream *stream, update::UpdateState state) { | ||||||
|  |   switch (state) { | ||||||
|  |     case update::UpdateState::UPDATE_STATE_UNKNOWN: | ||||||
|  |       stream->print("unknown"); | ||||||
|  |       break; | ||||||
|  |     case update::UpdateState::UPDATE_STATE_NO_UPDATE: | ||||||
|  |       stream->print("none"); | ||||||
|  |       break; | ||||||
|  |     case update::UpdateState::UPDATE_STATE_AVAILABLE: | ||||||
|  |       stream->print("available"); | ||||||
|  |       break; | ||||||
|  |     case update::UpdateState::UPDATE_STATE_INSTALLING: | ||||||
|  |       stream->print("installing"); | ||||||
|  |       break; | ||||||
|  |     default: | ||||||
|  |       stream->print("invalid"); | ||||||
|  |       break; | ||||||
|  |   } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void PrometheusHandler::update_entity_row_(AsyncResponseStream *stream, update::UpdateEntity *obj, std::string &area, | ||||||
|  |                                            std::string &node, std::string &friendly_name) { | ||||||
|  |   if (obj->is_internal() && !this->include_internal_) | ||||||
|  |     return; | ||||||
|  |   if (obj->has_state()) { | ||||||
|  |     // We have a valid value, output this value | ||||||
|  |     stream->print(F("esphome_update_entity_failed{id=\"")); | ||||||
|  |     stream->print(relabel_id_(obj).c_str()); | ||||||
|  |     add_area_label_(stream, area); | ||||||
|  |     add_node_label_(stream, node); | ||||||
|  |     add_friendly_name_label_(stream, friendly_name); | ||||||
|  |     stream->print(F("\",name=\"")); | ||||||
|  |     stream->print(relabel_name_(obj).c_str()); | ||||||
|  |     stream->print(F("\"} 0\n")); | ||||||
|  |     // First update state | ||||||
|  |     stream->print(F("esphome_update_entity_state{id=\"")); | ||||||
|  |     stream->print(relabel_id_(obj).c_str()); | ||||||
|  |     add_area_label_(stream, area); | ||||||
|  |     add_node_label_(stream, node); | ||||||
|  |     add_friendly_name_label_(stream, friendly_name); | ||||||
|  |     stream->print(F("\",name=\"")); | ||||||
|  |     stream->print(relabel_name_(obj).c_str()); | ||||||
|  |     stream->print(F("\",value=\"")); | ||||||
|  |     handle_update_state_(stream, obj->state); | ||||||
|  |     stream->print(F("\"} ")); | ||||||
|  |     stream->print(F("1.0")); | ||||||
|  |     stream->print(F("\n")); | ||||||
|  |     // Next update info | ||||||
|  |     stream->print(F("esphome_update_entity_info{id=\"")); | ||||||
|  |     stream->print(relabel_id_(obj).c_str()); | ||||||
|  |     add_area_label_(stream, area); | ||||||
|  |     add_node_label_(stream, node); | ||||||
|  |     add_friendly_name_label_(stream, friendly_name); | ||||||
|  |     stream->print(F("\",name=\"")); | ||||||
|  |     stream->print(relabel_name_(obj).c_str()); | ||||||
|  |     stream->print(F("\",current_version=\"")); | ||||||
|  |     stream->print(obj->update_info.current_version.c_str()); | ||||||
|  |     stream->print(F("\",latest_version=\"")); | ||||||
|  |     stream->print(obj->update_info.latest_version.c_str()); | ||||||
|  |     stream->print(F("\",title=\"")); | ||||||
|  |     stream->print(obj->update_info.title.c_str()); | ||||||
|  |     stream->print(F("\"} ")); | ||||||
|  |     stream->print(F("1.0")); | ||||||
|  |     stream->print(F("\n")); | ||||||
|  |   } else { | ||||||
|  |     // Invalid state | ||||||
|  |     stream->print(F("esphome_update_entity_failed{id=\"")); | ||||||
|  |     stream->print(relabel_id_(obj).c_str()); | ||||||
|  |     add_area_label_(stream, area); | ||||||
|  |     add_node_label_(stream, node); | ||||||
|  |     add_friendly_name_label_(stream, friendly_name); | ||||||
|  |     stream->print(F("\",name=\"")); | ||||||
|  |     stream->print(relabel_name_(obj).c_str()); | ||||||
|  |     stream->print(F("\"} 1\n")); | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | #endif | ||||||
|  |  | ||||||
| }  // namespace prometheus | }  // namespace prometheus | ||||||
| }  // namespace esphome | }  // namespace esphome | ||||||
| #endif | #endif | ||||||
|   | |||||||
| @@ -75,7 +75,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | |||||||
| #ifdef USE_BINARY_SENSOR | #ifdef USE_BINARY_SENSOR | ||||||
|   /// Return the type for prometheus |   /// Return the type for prometheus | ||||||
|   void binary_sensor_type_(AsyncResponseStream *stream); |   void binary_sensor_type_(AsyncResponseStream *stream); | ||||||
|   /// Return the sensor state as prometheus data point |   /// Return the binary sensor state as prometheus data point | ||||||
|   void binary_sensor_row_(AsyncResponseStream *stream, binary_sensor::BinarySensor *obj, std::string &area, |   void binary_sensor_row_(AsyncResponseStream *stream, binary_sensor::BinarySensor *obj, std::string &area, | ||||||
|                           std::string &node, std::string &friendly_name); |                           std::string &node, std::string &friendly_name); | ||||||
| #endif | #endif | ||||||
| @@ -83,7 +83,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | |||||||
| #ifdef USE_FAN | #ifdef USE_FAN | ||||||
|   /// Return the type for prometheus |   /// Return the type for prometheus | ||||||
|   void fan_type_(AsyncResponseStream *stream); |   void fan_type_(AsyncResponseStream *stream); | ||||||
|   /// Return the sensor state as prometheus data point |   /// Return the fan state as prometheus data point | ||||||
|   void fan_row_(AsyncResponseStream *stream, fan::Fan *obj, std::string &area, std::string &node, |   void fan_row_(AsyncResponseStream *stream, fan::Fan *obj, std::string &area, std::string &node, | ||||||
|                 std::string &friendly_name); |                 std::string &friendly_name); | ||||||
| #endif | #endif | ||||||
| @@ -91,7 +91,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | |||||||
| #ifdef USE_LIGHT | #ifdef USE_LIGHT | ||||||
|   /// Return the type for prometheus |   /// Return the type for prometheus | ||||||
|   void light_type_(AsyncResponseStream *stream); |   void light_type_(AsyncResponseStream *stream); | ||||||
|   /// Return the Light Values state as prometheus data point |   /// Return the light values state as prometheus data point | ||||||
|   void light_row_(AsyncResponseStream *stream, light::LightState *obj, std::string &area, std::string &node, |   void light_row_(AsyncResponseStream *stream, light::LightState *obj, std::string &area, std::string &node, | ||||||
|                   std::string &friendly_name); |                   std::string &friendly_name); | ||||||
| #endif | #endif | ||||||
| @@ -99,7 +99,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | |||||||
| #ifdef USE_COVER | #ifdef USE_COVER | ||||||
|   /// Return the type for prometheus |   /// Return the type for prometheus | ||||||
|   void cover_type_(AsyncResponseStream *stream); |   void cover_type_(AsyncResponseStream *stream); | ||||||
|   /// Return the switch Values state as prometheus data point |   /// Return the cover values state as prometheus data point | ||||||
|   void cover_row_(AsyncResponseStream *stream, cover::Cover *obj, std::string &area, std::string &node, |   void cover_row_(AsyncResponseStream *stream, cover::Cover *obj, std::string &area, std::string &node, | ||||||
|                   std::string &friendly_name); |                   std::string &friendly_name); | ||||||
| #endif | #endif | ||||||
| @@ -107,7 +107,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | |||||||
| #ifdef USE_SWITCH | #ifdef USE_SWITCH | ||||||
|   /// Return the type for prometheus |   /// Return the type for prometheus | ||||||
|   void switch_type_(AsyncResponseStream *stream); |   void switch_type_(AsyncResponseStream *stream); | ||||||
|   /// Return the switch Values state as prometheus data point |   /// Return the switch values state as prometheus data point | ||||||
|   void switch_row_(AsyncResponseStream *stream, switch_::Switch *obj, std::string &area, std::string &node, |   void switch_row_(AsyncResponseStream *stream, switch_::Switch *obj, std::string &area, std::string &node, | ||||||
|                    std::string &friendly_name); |                    std::string &friendly_name); | ||||||
| #endif | #endif | ||||||
| @@ -115,7 +115,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | |||||||
| #ifdef USE_LOCK | #ifdef USE_LOCK | ||||||
|   /// Return the type for prometheus |   /// Return the type for prometheus | ||||||
|   void lock_type_(AsyncResponseStream *stream); |   void lock_type_(AsyncResponseStream *stream); | ||||||
|   /// Return the lock Values state as prometheus data point |   /// Return the lock values state as prometheus data point | ||||||
|   void lock_row_(AsyncResponseStream *stream, lock::Lock *obj, std::string &area, std::string &node, |   void lock_row_(AsyncResponseStream *stream, lock::Lock *obj, std::string &area, std::string &node, | ||||||
|                  std::string &friendly_name); |                  std::string &friendly_name); | ||||||
| #endif | #endif | ||||||
| @@ -123,7 +123,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | |||||||
| #ifdef USE_TEXT_SENSOR | #ifdef USE_TEXT_SENSOR | ||||||
|   /// Return the type for prometheus |   /// Return the type for prometheus | ||||||
|   void text_sensor_type_(AsyncResponseStream *stream); |   void text_sensor_type_(AsyncResponseStream *stream); | ||||||
|   /// Return the lock Values state as prometheus data point |   /// Return the text sensor values state as prometheus data point | ||||||
|   void text_sensor_row_(AsyncResponseStream *stream, text_sensor::TextSensor *obj, std::string &area, std::string &node, |   void text_sensor_row_(AsyncResponseStream *stream, text_sensor::TextSensor *obj, std::string &area, std::string &node, | ||||||
|                         std::string &friendly_name); |                         std::string &friendly_name); | ||||||
| #endif | #endif | ||||||
| @@ -131,7 +131,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | |||||||
| #ifdef USE_NUMBER | #ifdef USE_NUMBER | ||||||
|   /// Return the type for prometheus |   /// Return the type for prometheus | ||||||
|   void number_type_(AsyncResponseStream *stream); |   void number_type_(AsyncResponseStream *stream); | ||||||
|   /// Return the sensor state as prometheus data point |   /// Return the number state as prometheus data point | ||||||
|   void number_row_(AsyncResponseStream *stream, number::Number *obj, std::string &area, std::string &node, |   void number_row_(AsyncResponseStream *stream, number::Number *obj, std::string &area, std::string &node, | ||||||
|                    std::string &friendly_name); |                    std::string &friendly_name); | ||||||
| #endif | #endif | ||||||
| @@ -147,11 +147,20 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | |||||||
| #ifdef USE_MEDIA_PLAYER | #ifdef USE_MEDIA_PLAYER | ||||||
|   /// Return the type for prometheus |   /// Return the type for prometheus | ||||||
|   void media_player_type_(AsyncResponseStream *stream); |   void media_player_type_(AsyncResponseStream *stream); | ||||||
|   /// Return the select state as prometheus data point |   /// Return the media player state as prometheus data point | ||||||
|   void media_player_row_(AsyncResponseStream *stream, media_player::MediaPlayer *obj, std::string &area, |   void media_player_row_(AsyncResponseStream *stream, media_player::MediaPlayer *obj, std::string &area, | ||||||
|                          std::string &node, std::string &friendly_name); |                          std::string &node, std::string &friendly_name); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #ifdef USE_UPDATE | ||||||
|  |   /// Return the type for prometheus | ||||||
|  |   void update_entity_type_(AsyncResponseStream *stream); | ||||||
|  |   /// Return the update state and info as prometheus data point | ||||||
|  |   void update_entity_row_(AsyncResponseStream *stream, update::UpdateEntity *obj, std::string &area, std::string &node, | ||||||
|  |                           std::string &friendly_name); | ||||||
|  |   void handle_update_state_(AsyncResponseStream *stream, update::UpdateState state); | ||||||
|  | #endif | ||||||
|  |  | ||||||
|   web_server_base::WebServerBase *base_; |   web_server_base::WebServerBase *base_; | ||||||
|   bool include_internal_{false}; |   bool include_internal_{false}; | ||||||
|   std::map<EntityBase *, std::string> relabel_map_id_; |   std::map<EntityBase *, std::string> relabel_map_id_; | ||||||
|   | |||||||
| @@ -1,11 +1,12 @@ | |||||||
| import esphome.codegen as cg | import esphome.codegen as cg | ||||||
| import esphome.config_validation as cv |  | ||||||
| from esphome.components import sensor | from esphome.components import sensor | ||||||
|  | import esphome.config_validation as cv | ||||||
| from esphome.const import ( | from esphome.const import ( | ||||||
|     CONF_EXTERNAL_TEMPERATURE, |     CONF_EXTERNAL_TEMPERATURE, | ||||||
|     CONF_HUMIDITY, |     CONF_HUMIDITY, | ||||||
|     CONF_TEMPERATURE, |  | ||||||
|     CONF_ID, |     CONF_ID, | ||||||
|  |     CONF_TARGET_TEMPERATURE, | ||||||
|  |     CONF_TEMPERATURE, | ||||||
|     DEVICE_CLASS_HUMIDITY, |     DEVICE_CLASS_HUMIDITY, | ||||||
|     DEVICE_CLASS_TEMPERATURE, |     DEVICE_CLASS_TEMPERATURE, | ||||||
|     STATE_CLASS_MEASUREMENT, |     STATE_CLASS_MEASUREMENT, | ||||||
| @@ -14,10 +15,10 @@ from esphome.const import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| from .. import ( | from .. import ( | ||||||
|     uponor_smatrix_ns, |  | ||||||
|     UponorSmatrixDevice, |  | ||||||
|     UPONOR_SMATRIX_DEVICE_SCHEMA, |     UPONOR_SMATRIX_DEVICE_SCHEMA, | ||||||
|  |     UponorSmatrixDevice, | ||||||
|     register_uponor_smatrix_device, |     register_uponor_smatrix_device, | ||||||
|  |     uponor_smatrix_ns, | ||||||
| ) | ) | ||||||
|  |  | ||||||
| DEPENDENCIES = ["uponor_smatrix"] | DEPENDENCIES = ["uponor_smatrix"] | ||||||
| @@ -50,6 +51,12 @@ CONFIG_SCHEMA = cv.COMPONENT_SCHEMA.extend( | |||||||
|             device_class=DEVICE_CLASS_HUMIDITY, |             device_class=DEVICE_CLASS_HUMIDITY, | ||||||
|             state_class=STATE_CLASS_MEASUREMENT, |             state_class=STATE_CLASS_MEASUREMENT, | ||||||
|         ), |         ), | ||||||
|  |         cv.Optional(CONF_TARGET_TEMPERATURE): sensor.sensor_schema( | ||||||
|  |             unit_of_measurement=UNIT_CELSIUS, | ||||||
|  |             accuracy_decimals=1, | ||||||
|  |             device_class=DEVICE_CLASS_TEMPERATURE, | ||||||
|  |             state_class=STATE_CLASS_MEASUREMENT, | ||||||
|  |         ), | ||||||
|     } |     } | ||||||
| ).extend(UPONOR_SMATRIX_DEVICE_SCHEMA) | ).extend(UPONOR_SMATRIX_DEVICE_SCHEMA) | ||||||
|  |  | ||||||
| @@ -68,3 +75,6 @@ async def to_code(config): | |||||||
|     if humidity_config := config.get(CONF_HUMIDITY): |     if humidity_config := config.get(CONF_HUMIDITY): | ||||||
|         sens = await sensor.new_sensor(humidity_config) |         sens = await sensor.new_sensor(humidity_config) | ||||||
|         cg.add(var.set_humidity_sensor(sens)) |         cg.add(var.set_humidity_sensor(sens)) | ||||||
|  |     if target_temperature_config := config.get(CONF_TARGET_TEMPERATURE): | ||||||
|  |         sens = await sensor.new_sensor(target_temperature_config) | ||||||
|  |         cg.add(var.set_target_temperature_sensor(sens)) | ||||||
|   | |||||||
| @@ -12,6 +12,7 @@ void UponorSmatrixSensor::dump_config() { | |||||||
|   LOG_SENSOR("  ", "Temperature", this->temperature_sensor_); |   LOG_SENSOR("  ", "Temperature", this->temperature_sensor_); | ||||||
|   LOG_SENSOR("  ", "External Temperature", this->external_temperature_sensor_); |   LOG_SENSOR("  ", "External Temperature", this->external_temperature_sensor_); | ||||||
|   LOG_SENSOR("  ", "Humidity", this->humidity_sensor_); |   LOG_SENSOR("  ", "Humidity", this->humidity_sensor_); | ||||||
|  |   LOG_SENSOR("  ", "Target Temperature", this->target_temperature_sensor_); | ||||||
| } | } | ||||||
|  |  | ||||||
| void UponorSmatrixSensor::on_device_data(const UponorSmatrixData *data, size_t data_len) { | void UponorSmatrixSensor::on_device_data(const UponorSmatrixData *data, size_t data_len) { | ||||||
| @@ -29,6 +30,10 @@ void UponorSmatrixSensor::on_device_data(const UponorSmatrixData *data, size_t d | |||||||
|         if (this->humidity_sensor_ != nullptr) |         if (this->humidity_sensor_ != nullptr) | ||||||
|           this->humidity_sensor_->publish_state(data[i].value & 0x00FF); |           this->humidity_sensor_->publish_state(data[i].value & 0x00FF); | ||||||
|         break; |         break; | ||||||
|  |       case UPONOR_ID_TARGET_TEMP: | ||||||
|  |         if (this->target_temperature_sensor_ != nullptr) | ||||||
|  |           this->target_temperature_sensor_->publish_state(raw_to_celsius(data[i].value)); | ||||||
|  |         break; | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -11,6 +11,7 @@ class UponorSmatrixSensor : public sensor::Sensor, public Component, public Upon | |||||||
|   SUB_SENSOR(temperature) |   SUB_SENSOR(temperature) | ||||||
|   SUB_SENSOR(external_temperature) |   SUB_SENSOR(external_temperature) | ||||||
|   SUB_SENSOR(humidity) |   SUB_SENSOR(humidity) | ||||||
|  |   SUB_SENSOR(target_temperature) | ||||||
|  |  | ||||||
|  public: |  public: | ||||||
|   void dump_config() override; |   void dump_config() override; | ||||||
|   | |||||||
							
								
								
									
										25
									
								
								tests/components/ntc/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								tests/components/ntc/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | |||||||
|  | sensor: | ||||||
|  |   - platform: adc | ||||||
|  |     id: my_sensor | ||||||
|  |     pin: ${pin} | ||||||
|  |   - platform: resistance | ||||||
|  |     sensor: my_sensor | ||||||
|  |     configuration: DOWNSTREAM | ||||||
|  |     resistor: 10kΩ | ||||||
|  |     reference_voltage: 3.3V | ||||||
|  |     name: Resistance | ||||||
|  |     id: resist | ||||||
|  |   - platform: ntc | ||||||
|  |     sensor: resist | ||||||
|  |     name: NTC Sensor | ||||||
|  |     calibration: | ||||||
|  |       b_constant: 3950 | ||||||
|  |       reference_resistance: 10k | ||||||
|  |       reference_temperature: 25°C | ||||||
|  |   - platform: ntc | ||||||
|  |     sensor: resist | ||||||
|  |     name: NTC Sensor2 | ||||||
|  |     calibration: | ||||||
|  |       - 10.0kOhm -> 25°C | ||||||
|  |       - 27.219kOhm -> 0°C | ||||||
|  |       - 14.674kOhm -> 15°C | ||||||
| @@ -1,26 +1,4 @@ | |||||||
| sensor: | substitutions: | ||||||
|   - platform: adc |   pin: GPIO32 | ||||||
|     id: my_sensor |  | ||||||
|     pin: 32 | <<: !include common.yaml | ||||||
|     attenuation: 11db |  | ||||||
|   - platform: resistance |  | ||||||
|     sensor: my_sensor |  | ||||||
|     configuration: DOWNSTREAM |  | ||||||
|     resistor: 10kΩ |  | ||||||
|     reference_voltage: 3.3V |  | ||||||
|     name: Resistance |  | ||||||
|     id: resist |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor |  | ||||||
|     calibration: |  | ||||||
|       b_constant: 3950 |  | ||||||
|       reference_resistance: 10k |  | ||||||
|       reference_temperature: 25°C |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor2 |  | ||||||
|     calibration: |  | ||||||
|       - 10.0kOhm -> 25°C |  | ||||||
|       - 27.219kOhm -> 0°C |  | ||||||
|       - 14.674kOhm -> 15°C |  | ||||||
|   | |||||||
| @@ -1,26 +1,4 @@ | |||||||
| sensor: | substitutions: | ||||||
|   - platform: adc |   pin: GPIO4 | ||||||
|     id: my_sensor |  | ||||||
|     pin: 4 | <<: !include common.yaml | ||||||
|     attenuation: 11db |  | ||||||
|   - platform: resistance |  | ||||||
|     sensor: my_sensor |  | ||||||
|     configuration: DOWNSTREAM |  | ||||||
|     resistor: 10kΩ |  | ||||||
|     reference_voltage: 3.3V |  | ||||||
|     name: Resistance |  | ||||||
|     id: resist |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor |  | ||||||
|     calibration: |  | ||||||
|       b_constant: 3950 |  | ||||||
|       reference_resistance: 10k |  | ||||||
|       reference_temperature: 25°C |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor2 |  | ||||||
|     calibration: |  | ||||||
|       - 10.0kOhm -> 25°C |  | ||||||
|       - 27.219kOhm -> 0°C |  | ||||||
|       - 14.674kOhm -> 15°C |  | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								tests/components/ntc/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								tests/components/ntc/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | substitutions: | ||||||
|  |   pin: GPIO4 | ||||||
|  |  | ||||||
|  | <<: !include common.yaml | ||||||
| @@ -1,26 +1,4 @@ | |||||||
| sensor: | substitutions: | ||||||
|   - platform: adc |   pin: GPIO32 | ||||||
|     id: my_sensor |  | ||||||
|     pin: 32 | <<: !include common.yaml | ||||||
|     attenuation: 11db |  | ||||||
|   - platform: resistance |  | ||||||
|     sensor: my_sensor |  | ||||||
|     configuration: DOWNSTREAM |  | ||||||
|     resistor: 10kΩ |  | ||||||
|     reference_voltage: 3.3V |  | ||||||
|     name: Resistance |  | ||||||
|     id: resist |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor |  | ||||||
|     calibration: |  | ||||||
|       b_constant: 3950 |  | ||||||
|       reference_resistance: 10k |  | ||||||
|       reference_temperature: 25°C |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor2 |  | ||||||
|     calibration: |  | ||||||
|       - 10.0kOhm -> 25°C |  | ||||||
|       - 27.219kOhm -> 0°C |  | ||||||
|       - 14.674kOhm -> 15°C |  | ||||||
|   | |||||||
| @@ -1,26 +1,4 @@ | |||||||
| sensor: | substitutions: | ||||||
|   - platform: adc |   pin: GPIO4 | ||||||
|     id: my_sensor |  | ||||||
|     pin: 4 | <<: !include common.yaml | ||||||
|     attenuation: 11db |  | ||||||
|   - platform: resistance |  | ||||||
|     sensor: my_sensor |  | ||||||
|     configuration: DOWNSTREAM |  | ||||||
|     resistor: 10kΩ |  | ||||||
|     reference_voltage: 3.3V |  | ||||||
|     name: Resistance |  | ||||||
|     id: resist |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor |  | ||||||
|     calibration: |  | ||||||
|       b_constant: 3950 |  | ||||||
|       reference_resistance: 10k |  | ||||||
|       reference_temperature: 25°C |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor2 |  | ||||||
|     calibration: |  | ||||||
|       - 10.0kOhm -> 25°C |  | ||||||
|       - 27.219kOhm -> 0°C |  | ||||||
|       - 14.674kOhm -> 15°C |  | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								tests/components/ntc/test.esp32-s2-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								tests/components/ntc/test.esp32-s2-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | substitutions: | ||||||
|  |   pin: GPIO4 | ||||||
|  |  | ||||||
|  | <<: !include common.yaml | ||||||
| @@ -1,26 +1,4 @@ | |||||||
| sensor: | substitutions: | ||||||
|   - platform: adc |   pin: GPIO4 | ||||||
|     id: my_sensor |  | ||||||
|     pin: 4 | <<: !include common.yaml | ||||||
|     attenuation: 11db |  | ||||||
|   - platform: resistance |  | ||||||
|     sensor: my_sensor |  | ||||||
|     configuration: DOWNSTREAM |  | ||||||
|     resistor: 10kΩ |  | ||||||
|     reference_voltage: 3.3V |  | ||||||
|     name: Resistance |  | ||||||
|     id: resist |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor |  | ||||||
|     calibration: |  | ||||||
|       b_constant: 3950 |  | ||||||
|       reference_resistance: 10k |  | ||||||
|       reference_temperature: 25°C |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor2 |  | ||||||
|     calibration: |  | ||||||
|       - 10.0kOhm -> 25°C |  | ||||||
|       - 27.219kOhm -> 0°C |  | ||||||
|       - 14.674kOhm -> 15°C |  | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								tests/components/ntc/test.esp32-s3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								tests/components/ntc/test.esp32-s3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | substitutions: | ||||||
|  |   pin: GPIO4 | ||||||
|  |  | ||||||
|  | <<: !include common.yaml | ||||||
| @@ -1,25 +1,4 @@ | |||||||
| sensor: | substitutions: | ||||||
|   - platform: adc |   pin: A0 | ||||||
|     id: my_sensor |  | ||||||
|     pin: A0 | <<: !include common.yaml | ||||||
|   - platform: resistance |  | ||||||
|     sensor: my_sensor |  | ||||||
|     configuration: DOWNSTREAM |  | ||||||
|     resistor: 10kΩ |  | ||||||
|     reference_voltage: 3.3V |  | ||||||
|     name: Resistance |  | ||||||
|     id: resist |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor |  | ||||||
|     calibration: |  | ||||||
|       b_constant: 3950 |  | ||||||
|       reference_resistance: 10k |  | ||||||
|       reference_temperature: 25°C |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor2 |  | ||||||
|     calibration: |  | ||||||
|       - 10.0kOhm -> 25°C |  | ||||||
|       - 27.219kOhm -> 0°C |  | ||||||
|       - 14.674kOhm -> 15°C |  | ||||||
|   | |||||||
| @@ -1,25 +1,4 @@ | |||||||
| sensor: | substitutions: | ||||||
|   - platform: adc |   pin: GPIO26 | ||||||
|     id: my_sensor |  | ||||||
|     pin: 26 | <<: !include common.yaml | ||||||
|   - platform: resistance |  | ||||||
|     sensor: my_sensor |  | ||||||
|     configuration: DOWNSTREAM |  | ||||||
|     resistor: 10kΩ |  | ||||||
|     reference_voltage: 3.3V |  | ||||||
|     name: Resistance |  | ||||||
|     id: resist |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor |  | ||||||
|     calibration: |  | ||||||
|       b_constant: 3950 |  | ||||||
|       reference_resistance: 10k |  | ||||||
|       reference_temperature: 25°C |  | ||||||
|   - platform: ntc |  | ||||||
|     sensor: resist |  | ||||||
|     name: NTC Sensor2 |  | ||||||
|     calibration: |  | ||||||
|       - 10.0kOhm -> 25°C |  | ||||||
|       - 27.219kOhm -> 0°C |  | ||||||
|       - 14.674kOhm -> 15°C |  | ||||||
|   | |||||||
							
								
								
									
										13
									
								
								tests/components/output/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/components/output/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | |||||||
|  | esphome: | ||||||
|  |   on_boot: | ||||||
|  |     then: | ||||||
|  |       - output.turn_off: light_output_1 | ||||||
|  |       - output.turn_on: light_output_1 | ||||||
|  |       - output.set_level: | ||||||
|  |           id: light_output_1 | ||||||
|  |           level: 50% | ||||||
|  |  | ||||||
|  | output: | ||||||
|  |   - platform: ${output_platform} | ||||||
|  |     id: light_output_1 | ||||||
|  |     pin: ${pin} | ||||||
| @@ -1,13 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   output_platform: ledc | ||||||
|     then: |   pin: GPIO12 | ||||||
|       - output.turn_off: light_output_1 |  | ||||||
|       - output.turn_on: light_output_1 |  | ||||||
|       - output.set_level: |  | ||||||
|           id: light_output_1 |  | ||||||
|           level: 50% |  | ||||||
|  |  | ||||||
| output: | <<: !include common.yaml | ||||||
|   - platform: ledc |  | ||||||
|     id: light_output_1 |  | ||||||
|     pin: 12 |  | ||||||
|   | |||||||
| @@ -1,13 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   output_platform: ledc | ||||||
|     then: |   pin: GPIO1 | ||||||
|       - output.turn_off: light_output_1 |  | ||||||
|       - output.turn_on: light_output_1 |  | ||||||
|       - output.set_level: |  | ||||||
|           id: light_output_1 |  | ||||||
|           level: 50% |  | ||||||
|  |  | ||||||
| output: | <<: !include common.yaml | ||||||
|   - platform: ledc |  | ||||||
|     id: light_output_1 |  | ||||||
|     pin: 1 |  | ||||||
|   | |||||||
| @@ -1,13 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   output_platform: ledc | ||||||
|     then: |   pin: GPIO1 | ||||||
|       - output.turn_off: light_output_1 |  | ||||||
|       - output.turn_on: light_output_1 |  | ||||||
|       - output.set_level: |  | ||||||
|           id: light_output_1 |  | ||||||
|           level: 50% |  | ||||||
|  |  | ||||||
| output: | <<: !include common.yaml | ||||||
|   - platform: ledc |  | ||||||
|     id: light_output_1 |  | ||||||
|     pin: 1 |  | ||||||
|   | |||||||
| @@ -1,13 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   output_platform: ledc | ||||||
|     then: |   pin: GPIO12 | ||||||
|       - output.turn_off: light_output_1 |  | ||||||
|       - output.turn_on: light_output_1 |  | ||||||
|       - output.set_level: |  | ||||||
|           id: light_output_1 |  | ||||||
|           level: 50% |  | ||||||
|  |  | ||||||
| output: | <<: !include common.yaml | ||||||
|   - platform: ledc |  | ||||||
|     id: light_output_1 |  | ||||||
|     pin: 12 |  | ||||||
|   | |||||||
| @@ -1,13 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   output_platform: esp8266_pwm | ||||||
|     then: |   pin: GPIO12 | ||||||
|       - output.turn_off: light_output_1 |  | ||||||
|       - output.turn_on: light_output_1 |  | ||||||
|       - output.set_level: |  | ||||||
|           id: light_output_1 |  | ||||||
|           level: 50% |  | ||||||
|  |  | ||||||
| output: | <<: !include common.yaml | ||||||
|   - platform: esp8266_pwm |  | ||||||
|     id: light_output_1 |  | ||||||
|     pin: 12 |  | ||||||
|   | |||||||
| @@ -1,13 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   output_platform: rp2040_pwm | ||||||
|     then: |   pin: GPIO12 | ||||||
|       - output.turn_off: light_output_1 |  | ||||||
|       - output.turn_on: light_output_1 |  | ||||||
|       - output.set_level: |  | ||||||
|           id: light_output_1 |  | ||||||
|           level: 50% |  | ||||||
|  |  | ||||||
| output: | <<: !include common.yaml | ||||||
|   - platform: rp2040_pwm |  | ||||||
|     id: light_output_1 |  | ||||||
|     pin: 12 |  | ||||||
|   | |||||||
							
								
								
									
										22
									
								
								tests/components/partition/common-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								tests/components/partition/common-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | |||||||
|  | light: | ||||||
|  |   - platform: ${light_platform} | ||||||
|  |     id: part_leds | ||||||
|  |     default_transition_length: 500ms | ||||||
|  |     chipset: ws2812 | ||||||
|  |     num_leds: 256 | ||||||
|  |     rgb_order: GRB | ||||||
|  |     rmt_channel: 1 | ||||||
|  |     pin: ${pin} | ||||||
|  |   - platform: partition | ||||||
|  |     name: Partition Light | ||||||
|  |     segments: | ||||||
|  |       - id: part_leds | ||||||
|  |         from: 0 | ||||||
|  |         to: 0 | ||||||
|  |       - id: part_leds | ||||||
|  |         from: 1 | ||||||
|  |         to: 10 | ||||||
|  |       - id: part_leds | ||||||
|  |         from: 20 | ||||||
|  |         to: 25 | ||||||
|  |       - single_light_id: part_leds | ||||||
							
								
								
									
										21
									
								
								tests/components/partition/common-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								tests/components/partition/common-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | |||||||
|  | light: | ||||||
|  |   - platform: ${light_platform} | ||||||
|  |     id: part_leds | ||||||
|  |     default_transition_length: 500ms | ||||||
|  |     chipset: ws2812 | ||||||
|  |     num_leds: 256 | ||||||
|  |     rgb_order: GRB | ||||||
|  |     pin: ${pin} | ||||||
|  |   - platform: partition | ||||||
|  |     name: Partition Light | ||||||
|  |     segments: | ||||||
|  |       - id: part_leds | ||||||
|  |         from: 0 | ||||||
|  |         to: 0 | ||||||
|  |       - id: part_leds | ||||||
|  |         from: 1 | ||||||
|  |         to: 10 | ||||||
|  |       - id: part_leds | ||||||
|  |         from: 20 | ||||||
|  |         to: 25 | ||||||
|  |       - single_light_id: part_leds | ||||||
| @@ -1,22 +1,5 @@ | |||||||
| light: | substitutions: | ||||||
|   - platform: fastled_clockless |   light_platform: esp32_rmt_led_strip | ||||||
|     id: part_leds |   pin: GPIO2 | ||||||
|     chipset: WS2812B |  | ||||||
|     pin: 2 | <<: !include common-ard.yaml | ||||||
|     num_leds: 256 |  | ||||||
|     rgb_order: GRB |  | ||||||
|     default_transition_length: 0s |  | ||||||
|     color_correct: [50%, 50%, 50%] |  | ||||||
|   - platform: partition |  | ||||||
|     name: Partition Light |  | ||||||
|     segments: |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 0 |  | ||||||
|         to: 0 |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 1 |  | ||||||
|         to: 10 |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 20 |  | ||||||
|         to: 25 |  | ||||||
|       - single_light_id: part_leds |  | ||||||
|   | |||||||
| @@ -1,22 +1,5 @@ | |||||||
| light: | substitutions: | ||||||
|   - platform: esp32_rmt_led_strip |   light_platform: esp32_rmt_led_strip | ||||||
|     id: part_leds |   pin: GPIO2 | ||||||
|     default_transition_length: 500ms |  | ||||||
|     chipset: ws2812 | <<: !include common-ard.yaml | ||||||
|     rgb_order: GRB |  | ||||||
|     num_leds: 256 |  | ||||||
|     pin: 2 |  | ||||||
|     rmt_channel: 0 |  | ||||||
|   - platform: partition |  | ||||||
|     name: Partition Light |  | ||||||
|     segments: |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 0 |  | ||||||
|         to: 0 |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 1 |  | ||||||
|         to: 10 |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 20 |  | ||||||
|         to: 25 |  | ||||||
|       - single_light_id: part_leds |  | ||||||
|   | |||||||
| @@ -1,21 +1,5 @@ | |||||||
| light: | substitutions: | ||||||
|   - platform: esp32_rmt_led_strip |   light_platform: esp32_rmt_led_strip | ||||||
|     id: part_leds |   pin: GPIO2 | ||||||
|     default_transition_length: 500ms |  | ||||||
|     chipset: ws2812 | <<: !include common-idf.yaml | ||||||
|     rgb_order: GRB |  | ||||||
|     num_leds: 256 |  | ||||||
|     pin: 2 |  | ||||||
|   - platform: partition |  | ||||||
|     name: Partition Light |  | ||||||
|     segments: |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 0 |  | ||||||
|         to: 0 |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 1 |  | ||||||
|         to: 10 |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 20 |  | ||||||
|         to: 25 |  | ||||||
|       - single_light_id: part_leds |  | ||||||
|   | |||||||
| @@ -1,21 +1,5 @@ | |||||||
| light: | substitutions: | ||||||
|   - platform: esp32_rmt_led_strip |   light_platform: esp32_rmt_led_strip | ||||||
|     id: part_leds |   pin: GPIO12 | ||||||
|     default_transition_length: 500ms |  | ||||||
|     chipset: ws2812 | <<: !include common-idf.yaml | ||||||
|     rgb_order: GRB |  | ||||||
|     num_leds: 256 |  | ||||||
|     pin: 2 |  | ||||||
|   - platform: partition |  | ||||||
|     name: Partition Light |  | ||||||
|     segments: |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 0 |  | ||||||
|         to: 0 |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 1 |  | ||||||
|         to: 10 |  | ||||||
|       - id: part_leds |  | ||||||
|         from: 20 |  | ||||||
|         to: 25 |  | ||||||
|       - single_light_id: part_leds |  | ||||||
|   | |||||||
							
								
								
									
										17
									
								
								tests/components/pca6416a/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								tests/components/pca6416a/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | |||||||
|  | i2c: | ||||||
|  |   - id: i2c_pca6416a | ||||||
|  |     scl: ${scl_pin} | ||||||
|  |     sda: ${sda_pin} | ||||||
|  |  | ||||||
|  | pca6416a: | ||||||
|  |   - id: pca6416a_hub | ||||||
|  |     address: 0x21 | ||||||
|  |  | ||||||
|  | binary_sensor: | ||||||
|  |   - platform: gpio | ||||||
|  |     name: PCA6416A Binary Sensor | ||||||
|  |     pin: | ||||||
|  |       pca6416a: pca6416a_hub | ||||||
|  |       number: 15 | ||||||
|  |       mode: INPUT | ||||||
|  |       inverted: true | ||||||
| @@ -1,17 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca6416a |   scl_pin: GPIO16 | ||||||
|     scl: 16 |   sda_pin: GPIO17 | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| pca6416a: | <<: !include common.yaml | ||||||
|   - id: pca6416a_hub |  | ||||||
|     address: 0x21 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     name: PCA6416A Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca6416a: pca6416a_hub |  | ||||||
|       number: 15 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   | |||||||
| @@ -1,17 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca6416a |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca6416a: | <<: !include common.yaml | ||||||
|   - id: pca6416a_hub |  | ||||||
|     address: 0x21 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     name: PCA6416A Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca6416a: pca6416a_hub |  | ||||||
|       number: 15 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   | |||||||
| @@ -1,17 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca6416a |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca6416a: | <<: !include common.yaml | ||||||
|   - id: pca6416a_hub |  | ||||||
|     address: 0x21 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     name: PCA6416A Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca6416a: pca6416a_hub |  | ||||||
|       number: 15 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   | |||||||
| @@ -1,17 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca6416a |   scl_pin: GPIO16 | ||||||
|     scl: 16 |   sda_pin: GPIO17 | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| pca6416a: | <<: !include common.yaml | ||||||
|   - id: pca6416a_hub |  | ||||||
|     address: 0x21 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     name: PCA6416A Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca6416a: pca6416a_hub |  | ||||||
|       number: 15 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   | |||||||
| @@ -1,17 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca6416a |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca6416a: | <<: !include common.yaml | ||||||
|   - id: pca6416a_hub |  | ||||||
|     address: 0x21 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     name: PCA6416A Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca6416a: pca6416a_hub |  | ||||||
|       number: 15 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   | |||||||
| @@ -1,17 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca6416a |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca6416a: | <<: !include common.yaml | ||||||
|   - id: pca6416a_hub |  | ||||||
|     address: 0x21 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     name: PCA6416A Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca6416a: pca6416a_hub |  | ||||||
|       number: 15 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   | |||||||
							
								
								
									
										26
									
								
								tests/components/pca9554/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								tests/components/pca9554/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | |||||||
|  | i2c: | ||||||
|  |   - id: i2c_pca9554 | ||||||
|  |     scl: ${scl_pin} | ||||||
|  |     sda: ${sda_pin} | ||||||
|  |  | ||||||
|  | pca9554: | ||||||
|  |   - id: pca9554_hub | ||||||
|  |     pin_count: 8 | ||||||
|  |     address: 0x3F | ||||||
|  |  | ||||||
|  | binary_sensor: | ||||||
|  |   - platform: gpio | ||||||
|  |     id: pca9554_input | ||||||
|  |     name: PCA9554 Binary Sensor | ||||||
|  |     pin: | ||||||
|  |       pca9554: pca9554_hub | ||||||
|  |       number: 1 | ||||||
|  |       mode: INPUT | ||||||
|  |       inverted: true | ||||||
|  |   - platform: gpio | ||||||
|  |     id: pca9554_output | ||||||
|  |     pin: | ||||||
|  |       pca9554: pca9554_hub | ||||||
|  |       number: 0 | ||||||
|  |       mode: OUTPUT | ||||||
|  |       inverted: false | ||||||
| @@ -1,26 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9554 |   scl_pin: GPIO16 | ||||||
|     scl: 16 |   sda_pin: GPIO17 | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| pca9554: | <<: !include common.yaml | ||||||
|   - id: pca9554_hub |  | ||||||
|     pin_count: 8 |  | ||||||
|     address: 0x3F |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_input |  | ||||||
|     name: PCA9554 Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_output |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
| @@ -1,26 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9554 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca9554: | <<: !include common.yaml | ||||||
|   - id: pca9554_hub |  | ||||||
|     pin_count: 8 |  | ||||||
|     address: 0x3F |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_input |  | ||||||
|     name: PCA9554 Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_output |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
| @@ -1,26 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9554 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca9554: | <<: !include common.yaml | ||||||
|   - id: pca9554_hub |  | ||||||
|     pin_count: 8 |  | ||||||
|     address: 0x3F |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_input |  | ||||||
|     name: PCA9554 Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_output |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
| @@ -1,26 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9554 |   scl_pin: GPIO16 | ||||||
|     scl: 16 |   sda_pin: GPIO17 | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| pca9554: | <<: !include common.yaml | ||||||
|   - id: pca9554_hub |  | ||||||
|     pin_count: 8 |  | ||||||
|     address: 0x3F |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_input |  | ||||||
|     name: PCA9554 Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_output |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
| @@ -1,26 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9554 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca9554: | <<: !include common.yaml | ||||||
|   - id: pca9554_hub |  | ||||||
|     pin_count: 8 |  | ||||||
|     address: 0x3F |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_input |  | ||||||
|     name: PCA9554 Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_output |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
| @@ -1,26 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9554 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca9554: | <<: !include common.yaml | ||||||
|   - id: pca9554_hub |  | ||||||
|     pin_count: 8 |  | ||||||
|     address: 0x3F |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_input |  | ||||||
|     name: PCA9554 Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_output |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
							
								
								
									
										34
									
								
								tests/components/pca9685/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								tests/components/pca9685/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | |||||||
|  | i2c: | ||||||
|  |   - id: i2c_pca9685 | ||||||
|  |     scl: ${scl_pin} | ||||||
|  |     sda: ${sda_pin} | ||||||
|  |  | ||||||
|  | pca9685: | ||||||
|  |   frequency: 500 | ||||||
|  |   address: 0x0 | ||||||
|  |  | ||||||
|  | output: | ||||||
|  |   - platform: pca9685 | ||||||
|  |     id: pca_0 | ||||||
|  |     channel: 0 | ||||||
|  |   - platform: pca9685 | ||||||
|  |     id: pca_1 | ||||||
|  |     channel: 1 | ||||||
|  |   - platform: pca9685 | ||||||
|  |     id: pca_2 | ||||||
|  |     channel: 2 | ||||||
|  |   - platform: pca9685 | ||||||
|  |     id: pca_3 | ||||||
|  |     channel: 3 | ||||||
|  |   - platform: pca9685 | ||||||
|  |     id: pca_4 | ||||||
|  |     channel: 4 | ||||||
|  |   - platform: pca9685 | ||||||
|  |     id: pca_5 | ||||||
|  |     channel: 5 | ||||||
|  |   - platform: pca9685 | ||||||
|  |     id: pca_6 | ||||||
|  |     channel: 6 | ||||||
|  |   - platform: pca9685 | ||||||
|  |     id: pca_7 | ||||||
|  |     channel: 7 | ||||||
| @@ -1,34 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9685 |   scl_pin: GPIO16 | ||||||
|     scl: 16 |   sda_pin: GPIO17 | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| pca9685: | <<: !include common.yaml | ||||||
|   frequency: 500 |  | ||||||
|   address: 0x0 |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_0 |  | ||||||
|     channel: 0 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_1 |  | ||||||
|     channel: 1 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_2 |  | ||||||
|     channel: 2 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_3 |  | ||||||
|     channel: 3 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_4 |  | ||||||
|     channel: 4 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_5 |  | ||||||
|     channel: 5 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_6 |  | ||||||
|     channel: 6 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_7 |  | ||||||
|     channel: 7 |  | ||||||
|   | |||||||
| @@ -1,34 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9685 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca9685: | <<: !include common.yaml | ||||||
|   frequency: 500 |  | ||||||
|   address: 0x0 |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_0 |  | ||||||
|     channel: 0 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_1 |  | ||||||
|     channel: 1 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_2 |  | ||||||
|     channel: 2 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_3 |  | ||||||
|     channel: 3 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_4 |  | ||||||
|     channel: 4 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_5 |  | ||||||
|     channel: 5 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_6 |  | ||||||
|     channel: 6 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_7 |  | ||||||
|     channel: 7 |  | ||||||
|   | |||||||
| @@ -1,34 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9685 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca9685: | <<: !include common.yaml | ||||||
|   frequency: 500 |  | ||||||
|   address: 0x0 |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_0 |  | ||||||
|     channel: 0 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_1 |  | ||||||
|     channel: 1 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_2 |  | ||||||
|     channel: 2 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_3 |  | ||||||
|     channel: 3 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_4 |  | ||||||
|     channel: 4 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_5 |  | ||||||
|     channel: 5 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_6 |  | ||||||
|     channel: 6 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_7 |  | ||||||
|     channel: 7 |  | ||||||
|   | |||||||
| @@ -1,34 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9685 |   scl_pin: GPIO16 | ||||||
|     scl: 16 |   sda_pin: GPIO17 | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| pca9685: | <<: !include common.yaml | ||||||
|   frequency: 500 |  | ||||||
|   address: 0x0 |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_0 |  | ||||||
|     channel: 0 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_1 |  | ||||||
|     channel: 1 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_2 |  | ||||||
|     channel: 2 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_3 |  | ||||||
|     channel: 3 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_4 |  | ||||||
|     channel: 4 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_5 |  | ||||||
|     channel: 5 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_6 |  | ||||||
|     channel: 6 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_7 |  | ||||||
|     channel: 7 |  | ||||||
|   | |||||||
| @@ -1,34 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9685 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca9685: | <<: !include common.yaml | ||||||
|   frequency: 500 |  | ||||||
|   address: 0x0 |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_0 |  | ||||||
|     channel: 0 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_1 |  | ||||||
|     channel: 1 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_2 |  | ||||||
|     channel: 2 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_3 |  | ||||||
|     channel: 3 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_4 |  | ||||||
|     channel: 4 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_5 |  | ||||||
|     channel: 5 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_6 |  | ||||||
|     channel: 6 |  | ||||||
|   - platform: pca9685 |  | ||||||
|     id: pca_7 |  | ||||||
|     channel: 7 |  | ||||||
|   | |||||||
| @@ -1,26 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pca9554 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pca9554: | <<: !include common.yaml | ||||||
|   - id: pca9554_hub |  | ||||||
|     pin_count: 8 |  | ||||||
|     address: 0x3F |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_input |  | ||||||
|     name: PCA9554 Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pca9554_output |  | ||||||
|     pin: |  | ||||||
|       pca9554: pca9554_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
							
								
								
									
										14
									
								
								tests/components/pcd8544/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								tests/components/pcd8544/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | |||||||
|  | spi: | ||||||
|  |   - id: spi_pcd8544 | ||||||
|  |     clk_pin: ${clk_pin} | ||||||
|  |     mosi_pin: ${mosi_pin} | ||||||
|  |     miso_pin: ${miso_pin} | ||||||
|  |  | ||||||
|  | display: | ||||||
|  |   - platform: pcd8544 | ||||||
|  |     cs_pin: ${cs_pin} | ||||||
|  |     dc_pin: ${dc_pin} | ||||||
|  |     reset_pin: ${reset_pin} | ||||||
|  |     contrast: 60 | ||||||
|  |     lambda: |- | ||||||
|  |       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||||
| @@ -1,14 +1,9 @@ | |||||||
| spi: | substitutions: | ||||||
|   - id: spi_pcd8544 |   clk_pin: GPIO16 | ||||||
|     clk_pin: 16 |   mosi_pin: GPIO17 | ||||||
|     mosi_pin: 17 |   miso_pin: GPIO18 | ||||||
|     miso_pin: 15 |   cs_pin: GPIO12 | ||||||
|  |   dc_pin: GPIO13 | ||||||
|  |   reset_pin: GPIO14 | ||||||
|  |  | ||||||
| display: | <<: !include common.yaml | ||||||
|   - platform: pcd8544 |  | ||||||
|     cs_pin: 12 |  | ||||||
|     dc_pin: 13 |  | ||||||
|     reset_pin: 14 |  | ||||||
|     contrast: 60 |  | ||||||
|     lambda: |- |  | ||||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); |  | ||||||
|   | |||||||
| @@ -1,14 +1,9 @@ | |||||||
| spi: | substitutions: | ||||||
|   - id: spi_pcd8544 |   clk_pin: GPIO6 | ||||||
|     clk_pin: 6 |   mosi_pin: GPIO7 | ||||||
|     mosi_pin: 7 |   miso_pin: GPIO5 | ||||||
|     miso_pin: 5 |   cs_pin: GPIO8 | ||||||
|  |   dc_pin: GPIO9 | ||||||
|  |   reset_pin: GPIO10 | ||||||
|  |  | ||||||
| display: | <<: !include common.yaml | ||||||
|   - platform: pcd8544 |  | ||||||
|     cs_pin: 2 |  | ||||||
|     dc_pin: 3 |  | ||||||
|     reset_pin: 1 |  | ||||||
|     contrast: 60 |  | ||||||
|     lambda: |- |  | ||||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); |  | ||||||
|   | |||||||
| @@ -1,14 +1,9 @@ | |||||||
| spi: | substitutions: | ||||||
|   - id: spi_pcd8544 |   clk_pin: GPIO6 | ||||||
|     clk_pin: 6 |   mosi_pin: GPIO7 | ||||||
|     mosi_pin: 7 |   miso_pin: GPIO5 | ||||||
|     miso_pin: 5 |   cs_pin: GPIO8 | ||||||
|  |   dc_pin: GPIO9 | ||||||
|  |   reset_pin: GPIO10 | ||||||
|  |  | ||||||
| display: | <<: !include common.yaml | ||||||
|   - platform: pcd8544 |  | ||||||
|     cs_pin: 2 |  | ||||||
|     dc_pin: 3 |  | ||||||
|     reset_pin: 1 |  | ||||||
|     contrast: 60 |  | ||||||
|     lambda: |- |  | ||||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); |  | ||||||
|   | |||||||
| @@ -1,14 +1,9 @@ | |||||||
| spi: | substitutions: | ||||||
|   - id: spi_pcd8544 |   clk_pin: GPIO16 | ||||||
|     clk_pin: 16 |   mosi_pin: GPIO17 | ||||||
|     mosi_pin: 17 |   miso_pin: GPIO18 | ||||||
|     miso_pin: 15 |   cs_pin: GPIO12 | ||||||
|  |   dc_pin: GPIO13 | ||||||
|  |   reset_pin: GPIO14 | ||||||
|  |  | ||||||
| display: | <<: !include common.yaml | ||||||
|   - platform: pcd8544 |  | ||||||
|     cs_pin: 12 |  | ||||||
|     dc_pin: 13 |  | ||||||
|     reset_pin: 14 |  | ||||||
|     contrast: 60 |  | ||||||
|     lambda: |- |  | ||||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); |  | ||||||
|   | |||||||
| @@ -1,14 +1,9 @@ | |||||||
| spi: | substitutions: | ||||||
|   - id: spi_pcd8544 |   clk_pin: GPIO14 | ||||||
|     clk_pin: 14 |   mosi_pin: GPIO13 | ||||||
|     mosi_pin: 13 |   miso_pin: GPIO12 | ||||||
|     miso_pin: 12 |   cs_pin: GPIO5 | ||||||
|  |   dc_pin: GPIO15 | ||||||
|  |   reset_pin: GPIO16 | ||||||
|  |  | ||||||
| display: | <<: !include common.yaml | ||||||
|   - platform: pcd8544 |  | ||||||
|     cs_pin: 15 |  | ||||||
|     dc_pin: 16 |  | ||||||
|     reset_pin: 5 |  | ||||||
|     contrast: 60 |  | ||||||
|     lambda: |- |  | ||||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); |  | ||||||
|   | |||||||
| @@ -1,14 +1,9 @@ | |||||||
| spi: | substitutions: | ||||||
|   - id: spi_pcd8544 |   clk_pin: GPIO2 | ||||||
|     clk_pin: 2 |   mosi_pin: GPIO3 | ||||||
|     mosi_pin: 3 |   miso_pin: GPIO4 | ||||||
|     miso_pin: 4 |   cs_pin: GPIO5 | ||||||
|  |   dc_pin: GPIO15 | ||||||
|  |   reset_pin: GPIO16 | ||||||
|  |  | ||||||
| display: | <<: !include common.yaml | ||||||
|   - platform: pcd8544 |  | ||||||
|     cs_pin: 6 |  | ||||||
|     dc_pin: 5 |  | ||||||
|     reset_pin: 7 |  | ||||||
|     contrast: 60 |  | ||||||
|     lambda: |- |  | ||||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); |  | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								tests/components/pcf85063/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								tests/components/pcf85063/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | |||||||
|  | esphome: | ||||||
|  |   on_boot: | ||||||
|  |     - pcf85063.read_time | ||||||
|  |     - pcf85063.write_time | ||||||
|  |  | ||||||
|  | i2c: | ||||||
|  |   - id: i2c_pcf85063 | ||||||
|  |     scl: ${scl_pin} | ||||||
|  |     sda: ${sda_pin} | ||||||
|  |  | ||||||
|  | time: | ||||||
|  |   - platform: pcf85063 | ||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO16 | ||||||
|     - pcf85063.read_time |   sda_pin: GPIO17 | ||||||
|     - pcf85063.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf85063 |  | ||||||
|     scl: 16 |  | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf85063 |  | ||||||
|   | |||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO5 | ||||||
|     - pcf85063.read_time |   sda_pin: GPIO4 | ||||||
|     - pcf85063.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf85063 |  | ||||||
|     scl: 5 |  | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf85063 |  | ||||||
|   | |||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO5 | ||||||
|     - pcf85063.read_time |   sda_pin: GPIO4 | ||||||
|     - pcf85063.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf85063 |  | ||||||
|     scl: 5 |  | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf85063 |  | ||||||
|   | |||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO16 | ||||||
|     - pcf85063.read_time |   sda_pin: GPIO17 | ||||||
|     - pcf85063.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf85063 |  | ||||||
|     scl: 16 |  | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf85063 |  | ||||||
|   | |||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO5 | ||||||
|     - pcf85063.read_time |   sda_pin: GPIO4 | ||||||
|     - pcf85063.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf85063 |  | ||||||
|     scl: 5 |  | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf85063 |  | ||||||
|   | |||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO5 | ||||||
|     - pcf85063.read_time |   sda_pin: GPIO4 | ||||||
|     - pcf85063.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf85063 |  | ||||||
|     scl: 5 |  | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf85063 |  | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								tests/components/pcf8563/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								tests/components/pcf8563/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | |||||||
|  | esphome: | ||||||
|  |   on_boot: | ||||||
|  |     - pcf8563.read_time | ||||||
|  |     - pcf8563.write_time | ||||||
|  |  | ||||||
|  | i2c: | ||||||
|  |   - id: i2c_pcf8563 | ||||||
|  |     scl: ${scl_pin} | ||||||
|  |     sda: ${sda_pin} | ||||||
|  |  | ||||||
|  | time: | ||||||
|  |   - platform: pcf8563 | ||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO16 | ||||||
|     - pcf8563.read_time |   sda_pin: GPIO17 | ||||||
|     - pcf8563.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf8563 |  | ||||||
|     scl: 16 |  | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf8563 |  | ||||||
|   | |||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO5 | ||||||
|     - pcf8563.read_time |   sda_pin: GPIO4 | ||||||
|     - pcf8563.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf8563 |  | ||||||
|     scl: 5 |  | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf8563 |  | ||||||
|   | |||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO5 | ||||||
|     - pcf8563.read_time |   sda_pin: GPIO4 | ||||||
|     - pcf8563.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf8563 |  | ||||||
|     scl: 5 |  | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf8563 |  | ||||||
|   | |||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO16 | ||||||
|     - pcf8563.read_time |   sda_pin: GPIO17 | ||||||
|     - pcf8563.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf8563 |  | ||||||
|     scl: 16 |  | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf8563 |  | ||||||
|   | |||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO5 | ||||||
|     - pcf8563.read_time |   sda_pin: GPIO4 | ||||||
|     - pcf8563.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf8563 |  | ||||||
|     scl: 5 |  | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf8563 |  | ||||||
|   | |||||||
| @@ -1,12 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   scl_pin: GPIO5 | ||||||
|     - pcf8563.read_time |   sda_pin: GPIO4 | ||||||
|     - pcf8563.write_time |  | ||||||
|  |  | ||||||
| i2c: | <<: !include common.yaml | ||||||
|   - id: i2c_pcf8563 |  | ||||||
|     scl: 5 |  | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| time: |  | ||||||
|   - platform: pcf8563 |  | ||||||
|   | |||||||
							
								
								
									
										28
									
								
								tests/components/pcf8574/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								tests/components/pcf8574/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | |||||||
|  | i2c: | ||||||
|  |   - id: i2c_pcf8574 | ||||||
|  |     scl: ${scl_pin} | ||||||
|  |     sda: ${sda_pin} | ||||||
|  |  | ||||||
|  | pcf8574: | ||||||
|  |   - id: pcf8574_hub | ||||||
|  |     address: 0x21 | ||||||
|  |     pcf8575: false | ||||||
|  |  | ||||||
|  | binary_sensor: | ||||||
|  |   - platform: gpio | ||||||
|  |     id: pcf8574_binary_sensor | ||||||
|  |     name: PCF Binary Sensor | ||||||
|  |     pin: | ||||||
|  |       pcf8574: pcf8574_hub | ||||||
|  |       number: 1 | ||||||
|  |       mode: INPUT | ||||||
|  |       inverted: true | ||||||
|  |  | ||||||
|  | output: | ||||||
|  |   - platform: gpio | ||||||
|  |     id: pcf8574_output | ||||||
|  |     pin: | ||||||
|  |       pcf8574: pcf8574_hub | ||||||
|  |       number: 0 | ||||||
|  |       mode: OUTPUT | ||||||
|  |       inverted: false | ||||||
| @@ -1,28 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pcf8563 |   scl_pin: GPIO16 | ||||||
|     scl: 16 |   sda_pin: GPIO17 | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| pcf8574: | <<: !include common.yaml | ||||||
|   - id: pcf8574_hub |  | ||||||
|     address: 0x21 |  | ||||||
|     pcf8575: false |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_binary_sensor |  | ||||||
|     name: PCF Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_output |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
| @@ -1,28 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pcf8563 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pcf8574: | <<: !include common.yaml | ||||||
|   - id: pcf8574_hub |  | ||||||
|     address: 0x21 |  | ||||||
|     pcf8575: false |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_binary_sensor |  | ||||||
|     name: PCF Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_output |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
| @@ -1,28 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pcf8563 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pcf8574: | <<: !include common.yaml | ||||||
|   - id: pcf8574_hub |  | ||||||
|     address: 0x21 |  | ||||||
|     pcf8575: false |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_binary_sensor |  | ||||||
|     name: PCF Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_output |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
| @@ -1,28 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pcf8563 |   scl_pin: GPIO16 | ||||||
|     scl: 16 |   sda_pin: GPIO17 | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| pcf8574: | <<: !include common.yaml | ||||||
|   - id: pcf8574_hub |  | ||||||
|     address: 0x21 |  | ||||||
|     pcf8575: false |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_binary_sensor |  | ||||||
|     name: PCF Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_output |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
| @@ -1,28 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pcf8563 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pcf8574: | <<: !include common.yaml | ||||||
|   - id: pcf8574_hub |  | ||||||
|     address: 0x21 |  | ||||||
|     pcf8575: false |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_binary_sensor |  | ||||||
|     name: PCF Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_output |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
| @@ -1,28 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pcf8563 |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| pcf8574: | <<: !include common.yaml | ||||||
|   - id: pcf8574_hub |  | ||||||
|     address: 0x21 |  | ||||||
|     pcf8575: false |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_binary_sensor |  | ||||||
|     name: PCF Binary Sensor |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 1 |  | ||||||
|       mode: INPUT |  | ||||||
|       inverted: true |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: gpio |  | ||||||
|     id: pcf8574_output |  | ||||||
|     pin: |  | ||||||
|       pcf8574: pcf8574_hub |  | ||||||
|       number: 0 |  | ||||||
|       mode: OUTPUT |  | ||||||
|       inverted: false |  | ||||||
|   | |||||||
							
								
								
									
										249
									
								
								tests/components/pipsolar/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										249
									
								
								tests/components/pipsolar/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,249 @@ | |||||||
|  | esphome: | ||||||
|  |   on_boot: | ||||||
|  |     then: | ||||||
|  |       - output.pipsolar.set_level: | ||||||
|  |           id: inverter0_battery_recharge_voltage_out | ||||||
|  |           value: 48.0 | ||||||
|  |  | ||||||
|  | uart: | ||||||
|  |   - id: uart_pipsolar | ||||||
|  |     tx_pin: ${tx_pin} | ||||||
|  |     rx_pin: ${rx_pin} | ||||||
|  |     baud_rate: 115200 | ||||||
|  |  | ||||||
|  | pipsolar: | ||||||
|  |   id: inverter0 | ||||||
|  |  | ||||||
|  | binary_sensor: | ||||||
|  |   - platform: pipsolar | ||||||
|  |     pipsolar_id: inverter0 | ||||||
|  |     add_sbu_priority_version: | ||||||
|  |       id: inverter0_add_sbu_priority_version | ||||||
|  |       name: inverter0_add_sbu_priority_version | ||||||
|  |     configuration_status: | ||||||
|  |       id: inverter0_configuration_status | ||||||
|  |       name: inverter0_configuration_status | ||||||
|  |     scc_firmware_version: | ||||||
|  |       id: inverter0_scc_firmware_version | ||||||
|  |       name: inverter0_scc_firmware_version | ||||||
|  |     load_status: | ||||||
|  |       id: inverter0_load_status | ||||||
|  |       name: inverter0_load_status | ||||||
|  |     battery_voltage_to_steady_while_charging: | ||||||
|  |       id: inverter0_battery_voltage_to_steady_while_charging | ||||||
|  |       name: inverter0_battery_voltage_to_steady_while_charging | ||||||
|  |     charging_status: | ||||||
|  |       id: inverter0_charging_status | ||||||
|  |       name: inverter0_charging_status | ||||||
|  |     scc_charging_status: | ||||||
|  |       id: inverter0_scc_charging_status | ||||||
|  |       name: inverter0_scc_charging_status | ||||||
|  |     ac_charging_status: | ||||||
|  |       id: inverter0_ac_charging_status | ||||||
|  |       name: inverter0_ac_charging_status | ||||||
|  |     charging_to_floating_mode: | ||||||
|  |       id: inverter0_charging_to_floating_mode | ||||||
|  |       name: inverter0_charging_to_floating_mode | ||||||
|  |     switch_on: | ||||||
|  |       id: inverter0_switch_on | ||||||
|  |       name: inverter0_switch_on | ||||||
|  |     dustproof_installed: | ||||||
|  |       id: inverter0_dustproof_installed | ||||||
|  |       name: inverter0_dustproof_installed | ||||||
|  |     silence_buzzer_open_buzzer: | ||||||
|  |       id: inverter0_silence_buzzer_open_buzzer | ||||||
|  |       name: inverter0_silence_buzzer_open_buzzer | ||||||
|  |     overload_bypass_function: | ||||||
|  |       id: inverter0_overload_bypass_function | ||||||
|  |       name: inverter0_overload_bypass_function | ||||||
|  |     lcd_escape_to_default: | ||||||
|  |       id: inverter0_lcd_escape_to_default | ||||||
|  |       name: inverter0_lcd_escape_to_default | ||||||
|  |     overload_restart_function: | ||||||
|  |       id: inverter0_overload_restart_function | ||||||
|  |       name: inverter0_overload_restart_function | ||||||
|  |     over_temperature_restart_function: | ||||||
|  |       id: inverter0_over_temperature_restart_function | ||||||
|  |       name: inverter0_over_temperature_restart_function | ||||||
|  |     backlight_on: | ||||||
|  |       id: inverter0_backlight_on | ||||||
|  |       name: inverter0_backlight_on | ||||||
|  |  | ||||||
|  | output: | ||||||
|  |   - platform: pipsolar | ||||||
|  |     pipsolar_id: inverter0 | ||||||
|  |     battery_recharge_voltage: | ||||||
|  |       id: inverter0_battery_recharge_voltage_out | ||||||
|  |  | ||||||
|  | sensor: | ||||||
|  |   - platform: pipsolar | ||||||
|  |     pipsolar_id: inverter0 | ||||||
|  |     grid_rating_voltage: | ||||||
|  |       id: inverter0_grid_rating_voltage | ||||||
|  |       name: inverter0_grid_rating_voltage | ||||||
|  |     grid_rating_current: | ||||||
|  |       id: inverter0_grid_rating_current | ||||||
|  |       name: inverter0_grid_rating_current | ||||||
|  |     ac_output_rating_voltage: | ||||||
|  |       id: inverter0_ac_output_rating_voltage | ||||||
|  |       name: inverter0_ac_output_rating_voltage | ||||||
|  |     ac_output_rating_frequency: | ||||||
|  |       id: inverter0_ac_output_rating_frequency | ||||||
|  |       name: inverter0_ac_output_rating_frequency | ||||||
|  |     ac_output_rating_current: | ||||||
|  |       id: inverter0_ac_output_rating_current | ||||||
|  |       name: inverter0_ac_output_rating_current | ||||||
|  |     ac_output_rating_apparent_power: | ||||||
|  |       id: inverter0_ac_output_rating_apparent_power | ||||||
|  |       name: inverter0_ac_output_rating_apparent_power | ||||||
|  |     ac_output_rating_active_power: | ||||||
|  |       id: inverter0_ac_output_rating_active_power | ||||||
|  |       name: inverter0_ac_output_rating_active_power | ||||||
|  |     battery_rating_voltage: | ||||||
|  |       id: inverter0_battery_rating_voltage | ||||||
|  |       name: inverter0_battery_rating_voltage | ||||||
|  |     battery_recharge_voltage: | ||||||
|  |       id: inverter0_battery_recharge_voltage | ||||||
|  |       name: inverter0_battery_recharge_voltage | ||||||
|  |     battery_under_voltage: | ||||||
|  |       id: inverter0_battery_under_voltage | ||||||
|  |       name: inverter0_battery_under_voltage | ||||||
|  |     battery_bulk_voltage: | ||||||
|  |       id: inverter0_battery_bulk_voltage | ||||||
|  |       name: inverter0_battery_bulk_voltage | ||||||
|  |     battery_float_voltage: | ||||||
|  |       id: inverter0_battery_float_voltage | ||||||
|  |       name: inverter0_battery_float_voltage | ||||||
|  |     battery_type: | ||||||
|  |       id: inverter0_battery_type | ||||||
|  |       name: inverter0_battery_type | ||||||
|  |     current_max_ac_charging_current: | ||||||
|  |       id: inverter0_current_max_ac_charging_current | ||||||
|  |       name: inverter0_current_max_ac_charging_current | ||||||
|  |     current_max_charging_current: | ||||||
|  |       id: inverter0_current_max_charging_current | ||||||
|  |       name: inverter0_current_max_charging_current | ||||||
|  |     input_voltage_range: | ||||||
|  |       id: inverter0_input_voltage_range | ||||||
|  |       name: inverter0_input_voltage_range | ||||||
|  |     output_source_priority: | ||||||
|  |       id: inverter0_output_source_priority | ||||||
|  |       name: inverter0_output_source_priority | ||||||
|  |     charger_source_priority: | ||||||
|  |       id: inverter0_charger_source_priority | ||||||
|  |       name: inverter0_charger_source_priority | ||||||
|  |     parallel_max_num: | ||||||
|  |       id: inverter0_parallel_max_num | ||||||
|  |       name: inverter0_parallel_max_num | ||||||
|  |     machine_type: | ||||||
|  |       id: inverter0_machine_type | ||||||
|  |       name: inverter0_machine_type | ||||||
|  |     topology: | ||||||
|  |       id: inverter0_topology | ||||||
|  |       name: inverter0_topology | ||||||
|  |     output_mode: | ||||||
|  |       id: inverter0_output_mode | ||||||
|  |       name: inverter0_output_mode | ||||||
|  |     battery_redischarge_voltage: | ||||||
|  |       id: inverter0_battery_redischarge_voltage | ||||||
|  |       name: inverter0_battery_redischarge_voltage | ||||||
|  |     pv_ok_condition_for_parallel: | ||||||
|  |       id: inverter0_pv_ok_condition_for_parallel | ||||||
|  |       name: inverter0_pv_ok_condition_for_parallel | ||||||
|  |     pv_power_balance: | ||||||
|  |       id: inverter0_pv_power_balance | ||||||
|  |       name: inverter0_pv_power_balance | ||||||
|  |     grid_voltage: | ||||||
|  |       id: inverter0_grid_voltage | ||||||
|  |       name: inverter0_grid_voltage | ||||||
|  |     grid_frequency: | ||||||
|  |       id: inverter0_grid_frequency | ||||||
|  |       name: inverter0_grid_frequency | ||||||
|  |     ac_output_voltage: | ||||||
|  |       id: inverter0_ac_output_voltage | ||||||
|  |       name: inverter0_ac_output_voltage | ||||||
|  |     ac_output_frequency: | ||||||
|  |       id: inverter0_ac_output_frequency | ||||||
|  |       name: inverter0_ac_output_frequency | ||||||
|  |     ac_output_apparent_power: | ||||||
|  |       id: inverter0_ac_output_apparent_power | ||||||
|  |       name: inverter0_ac_output_apparent_power | ||||||
|  |     ac_output_active_power: | ||||||
|  |       id: inverter0_ac_output_active_power | ||||||
|  |       name: inverter0_ac_output_active_power | ||||||
|  |     output_load_percent: | ||||||
|  |       id: inverter0_output_load_percent | ||||||
|  |       name: inverter0_output_load_percent | ||||||
|  |     bus_voltage: | ||||||
|  |       id: inverter0_bus_voltage | ||||||
|  |       name: inverter0_bus_voltage | ||||||
|  |     battery_voltage: | ||||||
|  |       id: inverter0_battery_voltage | ||||||
|  |       name: inverter0_battery_voltage | ||||||
|  |     battery_charging_current: | ||||||
|  |       id: inverter0_battery_charging_current | ||||||
|  |       name: inverter0_battery_charging_current | ||||||
|  |     battery_capacity_percent: | ||||||
|  |       id: inverter0_battery_capacity_percent | ||||||
|  |       name: inverter0_battery_capacity_percent | ||||||
|  |     inverter_heat_sink_temperature: | ||||||
|  |       id: inverter0_inverter_heat_sink_temperature | ||||||
|  |       name: inverter0_inverter_heat_sink_temperature | ||||||
|  |     pv_input_current_for_battery: | ||||||
|  |       id: inverter0_pv_input_current_for_battery | ||||||
|  |       name: inverter0_pv_input_current_for_battery | ||||||
|  |     pv_input_voltage: | ||||||
|  |       id: inverter0_pv_input_voltage | ||||||
|  |       name: inverter0_pv_input_voltage | ||||||
|  |     battery_voltage_scc: | ||||||
|  |       id: inverter0_battery_voltage_scc | ||||||
|  |       name: inverter0_battery_voltage_scc | ||||||
|  |     battery_discharge_current: | ||||||
|  |       id: inverter0_battery_discharge_current | ||||||
|  |       name: inverter0_battery_discharge_current | ||||||
|  |     battery_voltage_offset_for_fans_on: | ||||||
|  |       id: inverter0_battery_voltage_offset_for_fans_on | ||||||
|  |       name: inverter0_battery_voltage_offset_for_fans_on | ||||||
|  |     eeprom_version: | ||||||
|  |       id: inverter0_eeprom_version | ||||||
|  |       name: inverter0_eeprom_version | ||||||
|  |     pv_charging_power: | ||||||
|  |       id: inverter0_pv_charging_power | ||||||
|  |       name: inverter0_pv_charging_power | ||||||
|  |  | ||||||
|  | switch: | ||||||
|  |   - platform: pipsolar | ||||||
|  |     pipsolar_id: inverter0 | ||||||
|  |     output_source_priority_utility: | ||||||
|  |       name: inverter0_output_source_priority_utility | ||||||
|  |     output_source_priority_solar: | ||||||
|  |       name: inverter0_output_source_priority_solar | ||||||
|  |     output_source_priority_battery: | ||||||
|  |       name: inverter0_output_source_priority_battery | ||||||
|  |     output_source_priority_hybrid: | ||||||
|  |       name: inverter0_output_source_priority_hybrid | ||||||
|  |     input_voltage_range: | ||||||
|  |       name: inverter0_input_voltage_range | ||||||
|  |     pv_ok_condition_for_parallel: | ||||||
|  |       name: inverter0_pv_ok_condition_for_parallel | ||||||
|  |     pv_power_balance: | ||||||
|  |       name: inverter0_pv_power_balance | ||||||
|  |  | ||||||
|  | text_sensor: | ||||||
|  |   - platform: pipsolar | ||||||
|  |     pipsolar_id: inverter0 | ||||||
|  |     device_mode: | ||||||
|  |       id: inverter0_device_mode | ||||||
|  |       name: inverter0_device_mode | ||||||
|  |     last_qpigs: | ||||||
|  |       id: inverter0_last_qpigs | ||||||
|  |       name: inverter0_last_qpigs | ||||||
|  |     last_qpiri: | ||||||
|  |       id: inverter0_last_qpiri | ||||||
|  |       name: inverter0_last_qpiri | ||||||
|  |     last_qmod: | ||||||
|  |       id: inverter0_last_qmod | ||||||
|  |       name: inverter0_last_qmod | ||||||
|  |     last_qflag: | ||||||
|  |       id: inverter0_last_qflag | ||||||
|  |       name: inverter0_last_qflag | ||||||
| @@ -1,249 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   tx_pin: GPIO17 | ||||||
|     then: |   rx_pin: GPIO16 | ||||||
|       - output.pipsolar.set_level: |  | ||||||
|           id: inverter0_battery_recharge_voltage_out |  | ||||||
|           value: 48.0 |  | ||||||
|  |  | ||||||
| uart: | <<: !include common.yaml | ||||||
|   - id: uart_pipsolar |  | ||||||
|     tx_pin: 17 |  | ||||||
|     rx_pin: 16 |  | ||||||
|     baud_rate: 115200 |  | ||||||
|  |  | ||||||
| pipsolar: |  | ||||||
|   id: inverter0 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     add_sbu_priority_version: |  | ||||||
|       id: inverter0_add_sbu_priority_version |  | ||||||
|       name: inverter0_add_sbu_priority_version |  | ||||||
|     configuration_status: |  | ||||||
|       id: inverter0_configuration_status |  | ||||||
|       name: inverter0_configuration_status |  | ||||||
|     scc_firmware_version: |  | ||||||
|       id: inverter0_scc_firmware_version |  | ||||||
|       name: inverter0_scc_firmware_version |  | ||||||
|     load_status: |  | ||||||
|       id: inverter0_load_status |  | ||||||
|       name: inverter0_load_status |  | ||||||
|     battery_voltage_to_steady_while_charging: |  | ||||||
|       id: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|       name: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|     charging_status: |  | ||||||
|       id: inverter0_charging_status |  | ||||||
|       name: inverter0_charging_status |  | ||||||
|     scc_charging_status: |  | ||||||
|       id: inverter0_scc_charging_status |  | ||||||
|       name: inverter0_scc_charging_status |  | ||||||
|     ac_charging_status: |  | ||||||
|       id: inverter0_ac_charging_status |  | ||||||
|       name: inverter0_ac_charging_status |  | ||||||
|     charging_to_floating_mode: |  | ||||||
|       id: inverter0_charging_to_floating_mode |  | ||||||
|       name: inverter0_charging_to_floating_mode |  | ||||||
|     switch_on: |  | ||||||
|       id: inverter0_switch_on |  | ||||||
|       name: inverter0_switch_on |  | ||||||
|     dustproof_installed: |  | ||||||
|       id: inverter0_dustproof_installed |  | ||||||
|       name: inverter0_dustproof_installed |  | ||||||
|     silence_buzzer_open_buzzer: |  | ||||||
|       id: inverter0_silence_buzzer_open_buzzer |  | ||||||
|       name: inverter0_silence_buzzer_open_buzzer |  | ||||||
|     overload_bypass_function: |  | ||||||
|       id: inverter0_overload_bypass_function |  | ||||||
|       name: inverter0_overload_bypass_function |  | ||||||
|     lcd_escape_to_default: |  | ||||||
|       id: inverter0_lcd_escape_to_default |  | ||||||
|       name: inverter0_lcd_escape_to_default |  | ||||||
|     overload_restart_function: |  | ||||||
|       id: inverter0_overload_restart_function |  | ||||||
|       name: inverter0_overload_restart_function |  | ||||||
|     over_temperature_restart_function: |  | ||||||
|       id: inverter0_over_temperature_restart_function |  | ||||||
|       name: inverter0_over_temperature_restart_function |  | ||||||
|     backlight_on: |  | ||||||
|       id: inverter0_backlight_on |  | ||||||
|       name: inverter0_backlight_on |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage_out |  | ||||||
|  |  | ||||||
| sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     grid_rating_voltage: |  | ||||||
|       id: inverter0_grid_rating_voltage |  | ||||||
|       name: inverter0_grid_rating_voltage |  | ||||||
|     grid_rating_current: |  | ||||||
|       id: inverter0_grid_rating_current |  | ||||||
|       name: inverter0_grid_rating_current |  | ||||||
|     ac_output_rating_voltage: |  | ||||||
|       id: inverter0_ac_output_rating_voltage |  | ||||||
|       name: inverter0_ac_output_rating_voltage |  | ||||||
|     ac_output_rating_frequency: |  | ||||||
|       id: inverter0_ac_output_rating_frequency |  | ||||||
|       name: inverter0_ac_output_rating_frequency |  | ||||||
|     ac_output_rating_current: |  | ||||||
|       id: inverter0_ac_output_rating_current |  | ||||||
|       name: inverter0_ac_output_rating_current |  | ||||||
|     ac_output_rating_apparent_power: |  | ||||||
|       id: inverter0_ac_output_rating_apparent_power |  | ||||||
|       name: inverter0_ac_output_rating_apparent_power |  | ||||||
|     ac_output_rating_active_power: |  | ||||||
|       id: inverter0_ac_output_rating_active_power |  | ||||||
|       name: inverter0_ac_output_rating_active_power |  | ||||||
|     battery_rating_voltage: |  | ||||||
|       id: inverter0_battery_rating_voltage |  | ||||||
|       name: inverter0_battery_rating_voltage |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage |  | ||||||
|       name: inverter0_battery_recharge_voltage |  | ||||||
|     battery_under_voltage: |  | ||||||
|       id: inverter0_battery_under_voltage |  | ||||||
|       name: inverter0_battery_under_voltage |  | ||||||
|     battery_bulk_voltage: |  | ||||||
|       id: inverter0_battery_bulk_voltage |  | ||||||
|       name: inverter0_battery_bulk_voltage |  | ||||||
|     battery_float_voltage: |  | ||||||
|       id: inverter0_battery_float_voltage |  | ||||||
|       name: inverter0_battery_float_voltage |  | ||||||
|     battery_type: |  | ||||||
|       id: inverter0_battery_type |  | ||||||
|       name: inverter0_battery_type |  | ||||||
|     current_max_ac_charging_current: |  | ||||||
|       id: inverter0_current_max_ac_charging_current |  | ||||||
|       name: inverter0_current_max_ac_charging_current |  | ||||||
|     current_max_charging_current: |  | ||||||
|       id: inverter0_current_max_charging_current |  | ||||||
|       name: inverter0_current_max_charging_current |  | ||||||
|     input_voltage_range: |  | ||||||
|       id: inverter0_input_voltage_range |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     output_source_priority: |  | ||||||
|       id: inverter0_output_source_priority |  | ||||||
|       name: inverter0_output_source_priority |  | ||||||
|     charger_source_priority: |  | ||||||
|       id: inverter0_charger_source_priority |  | ||||||
|       name: inverter0_charger_source_priority |  | ||||||
|     parallel_max_num: |  | ||||||
|       id: inverter0_parallel_max_num |  | ||||||
|       name: inverter0_parallel_max_num |  | ||||||
|     machine_type: |  | ||||||
|       id: inverter0_machine_type |  | ||||||
|       name: inverter0_machine_type |  | ||||||
|     topology: |  | ||||||
|       id: inverter0_topology |  | ||||||
|       name: inverter0_topology |  | ||||||
|     output_mode: |  | ||||||
|       id: inverter0_output_mode |  | ||||||
|       name: inverter0_output_mode |  | ||||||
|     battery_redischarge_voltage: |  | ||||||
|       id: inverter0_battery_redischarge_voltage |  | ||||||
|       name: inverter0_battery_redischarge_voltage |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       id: inverter0_pv_ok_condition_for_parallel |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       id: inverter0_pv_power_balance |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|     grid_voltage: |  | ||||||
|       id: inverter0_grid_voltage |  | ||||||
|       name: inverter0_grid_voltage |  | ||||||
|     grid_frequency: |  | ||||||
|       id: inverter0_grid_frequency |  | ||||||
|       name: inverter0_grid_frequency |  | ||||||
|     ac_output_voltage: |  | ||||||
|       id: inverter0_ac_output_voltage |  | ||||||
|       name: inverter0_ac_output_voltage |  | ||||||
|     ac_output_frequency: |  | ||||||
|       id: inverter0_ac_output_frequency |  | ||||||
|       name: inverter0_ac_output_frequency |  | ||||||
|     ac_output_apparent_power: |  | ||||||
|       id: inverter0_ac_output_apparent_power |  | ||||||
|       name: inverter0_ac_output_apparent_power |  | ||||||
|     ac_output_active_power: |  | ||||||
|       id: inverter0_ac_output_active_power |  | ||||||
|       name: inverter0_ac_output_active_power |  | ||||||
|     output_load_percent: |  | ||||||
|       id: inverter0_output_load_percent |  | ||||||
|       name: inverter0_output_load_percent |  | ||||||
|     bus_voltage: |  | ||||||
|       id: inverter0_bus_voltage |  | ||||||
|       name: inverter0_bus_voltage |  | ||||||
|     battery_voltage: |  | ||||||
|       id: inverter0_battery_voltage |  | ||||||
|       name: inverter0_battery_voltage |  | ||||||
|     battery_charging_current: |  | ||||||
|       id: inverter0_battery_charging_current |  | ||||||
|       name: inverter0_battery_charging_current |  | ||||||
|     battery_capacity_percent: |  | ||||||
|       id: inverter0_battery_capacity_percent |  | ||||||
|       name: inverter0_battery_capacity_percent |  | ||||||
|     inverter_heat_sink_temperature: |  | ||||||
|       id: inverter0_inverter_heat_sink_temperature |  | ||||||
|       name: inverter0_inverter_heat_sink_temperature |  | ||||||
|     pv_input_current_for_battery: |  | ||||||
|       id: inverter0_pv_input_current_for_battery |  | ||||||
|       name: inverter0_pv_input_current_for_battery |  | ||||||
|     pv_input_voltage: |  | ||||||
|       id: inverter0_pv_input_voltage |  | ||||||
|       name: inverter0_pv_input_voltage |  | ||||||
|     battery_voltage_scc: |  | ||||||
|       id: inverter0_battery_voltage_scc |  | ||||||
|       name: inverter0_battery_voltage_scc |  | ||||||
|     battery_discharge_current: |  | ||||||
|       id: inverter0_battery_discharge_current |  | ||||||
|       name: inverter0_battery_discharge_current |  | ||||||
|     battery_voltage_offset_for_fans_on: |  | ||||||
|       id: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|       name: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|     eeprom_version: |  | ||||||
|       id: inverter0_eeprom_version |  | ||||||
|       name: inverter0_eeprom_version |  | ||||||
|     pv_charging_power: |  | ||||||
|       id: inverter0_pv_charging_power |  | ||||||
|       name: inverter0_pv_charging_power |  | ||||||
|  |  | ||||||
| switch: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     output_source_priority_utility: |  | ||||||
|       name: inverter0_output_source_priority_utility |  | ||||||
|     output_source_priority_solar: |  | ||||||
|       name: inverter0_output_source_priority_solar |  | ||||||
|     output_source_priority_battery: |  | ||||||
|       name: inverter0_output_source_priority_battery |  | ||||||
|     output_source_priority_hybrid: |  | ||||||
|       name: inverter0_output_source_priority_hybrid |  | ||||||
|     input_voltage_range: |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|  |  | ||||||
| text_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     device_mode: |  | ||||||
|       id: inverter0_device_mode |  | ||||||
|       name: inverter0_device_mode |  | ||||||
|     last_qpigs: |  | ||||||
|       id: inverter0_last_qpigs |  | ||||||
|       name: inverter0_last_qpigs |  | ||||||
|     last_qpiri: |  | ||||||
|       id: inverter0_last_qpiri |  | ||||||
|       name: inverter0_last_qpiri |  | ||||||
|     last_qmod: |  | ||||||
|       id: inverter0_last_qmod |  | ||||||
|       name: inverter0_last_qmod |  | ||||||
|     last_qflag: |  | ||||||
|       id: inverter0_last_qflag |  | ||||||
|       name: inverter0_last_qflag |  | ||||||
|   | |||||||
| @@ -1,249 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   tx_pin: GPIO4 | ||||||
|     then: |   rx_pin: GPIO5 | ||||||
|       - output.pipsolar.set_level: |  | ||||||
|           id: inverter0_battery_recharge_voltage_out |  | ||||||
|           value: 48.0 |  | ||||||
|  |  | ||||||
| uart: | <<: !include common.yaml | ||||||
|   - id: uart_pipsolar |  | ||||||
|     tx_pin: 4 |  | ||||||
|     rx_pin: 5 |  | ||||||
|     baud_rate: 115200 |  | ||||||
|  |  | ||||||
| pipsolar: |  | ||||||
|   id: inverter0 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     add_sbu_priority_version: |  | ||||||
|       id: inverter0_add_sbu_priority_version |  | ||||||
|       name: inverter0_add_sbu_priority_version |  | ||||||
|     configuration_status: |  | ||||||
|       id: inverter0_configuration_status |  | ||||||
|       name: inverter0_configuration_status |  | ||||||
|     scc_firmware_version: |  | ||||||
|       id: inverter0_scc_firmware_version |  | ||||||
|       name: inverter0_scc_firmware_version |  | ||||||
|     load_status: |  | ||||||
|       id: inverter0_load_status |  | ||||||
|       name: inverter0_load_status |  | ||||||
|     battery_voltage_to_steady_while_charging: |  | ||||||
|       id: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|       name: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|     charging_status: |  | ||||||
|       id: inverter0_charging_status |  | ||||||
|       name: inverter0_charging_status |  | ||||||
|     scc_charging_status: |  | ||||||
|       id: inverter0_scc_charging_status |  | ||||||
|       name: inverter0_scc_charging_status |  | ||||||
|     ac_charging_status: |  | ||||||
|       id: inverter0_ac_charging_status |  | ||||||
|       name: inverter0_ac_charging_status |  | ||||||
|     charging_to_floating_mode: |  | ||||||
|       id: inverter0_charging_to_floating_mode |  | ||||||
|       name: inverter0_charging_to_floating_mode |  | ||||||
|     switch_on: |  | ||||||
|       id: inverter0_switch_on |  | ||||||
|       name: inverter0_switch_on |  | ||||||
|     dustproof_installed: |  | ||||||
|       id: inverter0_dustproof_installed |  | ||||||
|       name: inverter0_dustproof_installed |  | ||||||
|     silence_buzzer_open_buzzer: |  | ||||||
|       id: inverter0_silence_buzzer_open_buzzer |  | ||||||
|       name: inverter0_silence_buzzer_open_buzzer |  | ||||||
|     overload_bypass_function: |  | ||||||
|       id: inverter0_overload_bypass_function |  | ||||||
|       name: inverter0_overload_bypass_function |  | ||||||
|     lcd_escape_to_default: |  | ||||||
|       id: inverter0_lcd_escape_to_default |  | ||||||
|       name: inverter0_lcd_escape_to_default |  | ||||||
|     overload_restart_function: |  | ||||||
|       id: inverter0_overload_restart_function |  | ||||||
|       name: inverter0_overload_restart_function |  | ||||||
|     over_temperature_restart_function: |  | ||||||
|       id: inverter0_over_temperature_restart_function |  | ||||||
|       name: inverter0_over_temperature_restart_function |  | ||||||
|     backlight_on: |  | ||||||
|       id: inverter0_backlight_on |  | ||||||
|       name: inverter0_backlight_on |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage_out |  | ||||||
|  |  | ||||||
| sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     grid_rating_voltage: |  | ||||||
|       id: inverter0_grid_rating_voltage |  | ||||||
|       name: inverter0_grid_rating_voltage |  | ||||||
|     grid_rating_current: |  | ||||||
|       id: inverter0_grid_rating_current |  | ||||||
|       name: inverter0_grid_rating_current |  | ||||||
|     ac_output_rating_voltage: |  | ||||||
|       id: inverter0_ac_output_rating_voltage |  | ||||||
|       name: inverter0_ac_output_rating_voltage |  | ||||||
|     ac_output_rating_frequency: |  | ||||||
|       id: inverter0_ac_output_rating_frequency |  | ||||||
|       name: inverter0_ac_output_rating_frequency |  | ||||||
|     ac_output_rating_current: |  | ||||||
|       id: inverter0_ac_output_rating_current |  | ||||||
|       name: inverter0_ac_output_rating_current |  | ||||||
|     ac_output_rating_apparent_power: |  | ||||||
|       id: inverter0_ac_output_rating_apparent_power |  | ||||||
|       name: inverter0_ac_output_rating_apparent_power |  | ||||||
|     ac_output_rating_active_power: |  | ||||||
|       id: inverter0_ac_output_rating_active_power |  | ||||||
|       name: inverter0_ac_output_rating_active_power |  | ||||||
|     battery_rating_voltage: |  | ||||||
|       id: inverter0_battery_rating_voltage |  | ||||||
|       name: inverter0_battery_rating_voltage |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage |  | ||||||
|       name: inverter0_battery_recharge_voltage |  | ||||||
|     battery_under_voltage: |  | ||||||
|       id: inverter0_battery_under_voltage |  | ||||||
|       name: inverter0_battery_under_voltage |  | ||||||
|     battery_bulk_voltage: |  | ||||||
|       id: inverter0_battery_bulk_voltage |  | ||||||
|       name: inverter0_battery_bulk_voltage |  | ||||||
|     battery_float_voltage: |  | ||||||
|       id: inverter0_battery_float_voltage |  | ||||||
|       name: inverter0_battery_float_voltage |  | ||||||
|     battery_type: |  | ||||||
|       id: inverter0_battery_type |  | ||||||
|       name: inverter0_battery_type |  | ||||||
|     current_max_ac_charging_current: |  | ||||||
|       id: inverter0_current_max_ac_charging_current |  | ||||||
|       name: inverter0_current_max_ac_charging_current |  | ||||||
|     current_max_charging_current: |  | ||||||
|       id: inverter0_current_max_charging_current |  | ||||||
|       name: inverter0_current_max_charging_current |  | ||||||
|     input_voltage_range: |  | ||||||
|       id: inverter0_input_voltage_range |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     output_source_priority: |  | ||||||
|       id: inverter0_output_source_priority |  | ||||||
|       name: inverter0_output_source_priority |  | ||||||
|     charger_source_priority: |  | ||||||
|       id: inverter0_charger_source_priority |  | ||||||
|       name: inverter0_charger_source_priority |  | ||||||
|     parallel_max_num: |  | ||||||
|       id: inverter0_parallel_max_num |  | ||||||
|       name: inverter0_parallel_max_num |  | ||||||
|     machine_type: |  | ||||||
|       id: inverter0_machine_type |  | ||||||
|       name: inverter0_machine_type |  | ||||||
|     topology: |  | ||||||
|       id: inverter0_topology |  | ||||||
|       name: inverter0_topology |  | ||||||
|     output_mode: |  | ||||||
|       id: inverter0_output_mode |  | ||||||
|       name: inverter0_output_mode |  | ||||||
|     battery_redischarge_voltage: |  | ||||||
|       id: inverter0_battery_redischarge_voltage |  | ||||||
|       name: inverter0_battery_redischarge_voltage |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       id: inverter0_pv_ok_condition_for_parallel |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       id: inverter0_pv_power_balance |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|     grid_voltage: |  | ||||||
|       id: inverter0_grid_voltage |  | ||||||
|       name: inverter0_grid_voltage |  | ||||||
|     grid_frequency: |  | ||||||
|       id: inverter0_grid_frequency |  | ||||||
|       name: inverter0_grid_frequency |  | ||||||
|     ac_output_voltage: |  | ||||||
|       id: inverter0_ac_output_voltage |  | ||||||
|       name: inverter0_ac_output_voltage |  | ||||||
|     ac_output_frequency: |  | ||||||
|       id: inverter0_ac_output_frequency |  | ||||||
|       name: inverter0_ac_output_frequency |  | ||||||
|     ac_output_apparent_power: |  | ||||||
|       id: inverter0_ac_output_apparent_power |  | ||||||
|       name: inverter0_ac_output_apparent_power |  | ||||||
|     ac_output_active_power: |  | ||||||
|       id: inverter0_ac_output_active_power |  | ||||||
|       name: inverter0_ac_output_active_power |  | ||||||
|     output_load_percent: |  | ||||||
|       id: inverter0_output_load_percent |  | ||||||
|       name: inverter0_output_load_percent |  | ||||||
|     bus_voltage: |  | ||||||
|       id: inverter0_bus_voltage |  | ||||||
|       name: inverter0_bus_voltage |  | ||||||
|     battery_voltage: |  | ||||||
|       id: inverter0_battery_voltage |  | ||||||
|       name: inverter0_battery_voltage |  | ||||||
|     battery_charging_current: |  | ||||||
|       id: inverter0_battery_charging_current |  | ||||||
|       name: inverter0_battery_charging_current |  | ||||||
|     battery_capacity_percent: |  | ||||||
|       id: inverter0_battery_capacity_percent |  | ||||||
|       name: inverter0_battery_capacity_percent |  | ||||||
|     inverter_heat_sink_temperature: |  | ||||||
|       id: inverter0_inverter_heat_sink_temperature |  | ||||||
|       name: inverter0_inverter_heat_sink_temperature |  | ||||||
|     pv_input_current_for_battery: |  | ||||||
|       id: inverter0_pv_input_current_for_battery |  | ||||||
|       name: inverter0_pv_input_current_for_battery |  | ||||||
|     pv_input_voltage: |  | ||||||
|       id: inverter0_pv_input_voltage |  | ||||||
|       name: inverter0_pv_input_voltage |  | ||||||
|     battery_voltage_scc: |  | ||||||
|       id: inverter0_battery_voltage_scc |  | ||||||
|       name: inverter0_battery_voltage_scc |  | ||||||
|     battery_discharge_current: |  | ||||||
|       id: inverter0_battery_discharge_current |  | ||||||
|       name: inverter0_battery_discharge_current |  | ||||||
|     battery_voltage_offset_for_fans_on: |  | ||||||
|       id: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|       name: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|     eeprom_version: |  | ||||||
|       id: inverter0_eeprom_version |  | ||||||
|       name: inverter0_eeprom_version |  | ||||||
|     pv_charging_power: |  | ||||||
|       id: inverter0_pv_charging_power |  | ||||||
|       name: inverter0_pv_charging_power |  | ||||||
|  |  | ||||||
| switch: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     output_source_priority_utility: |  | ||||||
|       name: inverter0_output_source_priority_utility |  | ||||||
|     output_source_priority_solar: |  | ||||||
|       name: inverter0_output_source_priority_solar |  | ||||||
|     output_source_priority_battery: |  | ||||||
|       name: inverter0_output_source_priority_battery |  | ||||||
|     output_source_priority_hybrid: |  | ||||||
|       name: inverter0_output_source_priority_hybrid |  | ||||||
|     input_voltage_range: |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|  |  | ||||||
| text_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     device_mode: |  | ||||||
|       id: inverter0_device_mode |  | ||||||
|       name: inverter0_device_mode |  | ||||||
|     last_qpigs: |  | ||||||
|       id: inverter0_last_qpigs |  | ||||||
|       name: inverter0_last_qpigs |  | ||||||
|     last_qpiri: |  | ||||||
|       id: inverter0_last_qpiri |  | ||||||
|       name: inverter0_last_qpiri |  | ||||||
|     last_qmod: |  | ||||||
|       id: inverter0_last_qmod |  | ||||||
|       name: inverter0_last_qmod |  | ||||||
|     last_qflag: |  | ||||||
|       id: inverter0_last_qflag |  | ||||||
|       name: inverter0_last_qflag |  | ||||||
|   | |||||||
| @@ -1,249 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   tx_pin: GPIO4 | ||||||
|     then: |   rx_pin: GPIO5 | ||||||
|       - output.pipsolar.set_level: |  | ||||||
|           id: inverter0_battery_recharge_voltage_out |  | ||||||
|           value: 48.0 |  | ||||||
|  |  | ||||||
| uart: | <<: !include common.yaml | ||||||
|   - id: uart_pipsolar |  | ||||||
|     tx_pin: 4 |  | ||||||
|     rx_pin: 5 |  | ||||||
|     baud_rate: 115200 |  | ||||||
|  |  | ||||||
| pipsolar: |  | ||||||
|   id: inverter0 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     add_sbu_priority_version: |  | ||||||
|       id: inverter0_add_sbu_priority_version |  | ||||||
|       name: inverter0_add_sbu_priority_version |  | ||||||
|     configuration_status: |  | ||||||
|       id: inverter0_configuration_status |  | ||||||
|       name: inverter0_configuration_status |  | ||||||
|     scc_firmware_version: |  | ||||||
|       id: inverter0_scc_firmware_version |  | ||||||
|       name: inverter0_scc_firmware_version |  | ||||||
|     load_status: |  | ||||||
|       id: inverter0_load_status |  | ||||||
|       name: inverter0_load_status |  | ||||||
|     battery_voltage_to_steady_while_charging: |  | ||||||
|       id: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|       name: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|     charging_status: |  | ||||||
|       id: inverter0_charging_status |  | ||||||
|       name: inverter0_charging_status |  | ||||||
|     scc_charging_status: |  | ||||||
|       id: inverter0_scc_charging_status |  | ||||||
|       name: inverter0_scc_charging_status |  | ||||||
|     ac_charging_status: |  | ||||||
|       id: inverter0_ac_charging_status |  | ||||||
|       name: inverter0_ac_charging_status |  | ||||||
|     charging_to_floating_mode: |  | ||||||
|       id: inverter0_charging_to_floating_mode |  | ||||||
|       name: inverter0_charging_to_floating_mode |  | ||||||
|     switch_on: |  | ||||||
|       id: inverter0_switch_on |  | ||||||
|       name: inverter0_switch_on |  | ||||||
|     dustproof_installed: |  | ||||||
|       id: inverter0_dustproof_installed |  | ||||||
|       name: inverter0_dustproof_installed |  | ||||||
|     silence_buzzer_open_buzzer: |  | ||||||
|       id: inverter0_silence_buzzer_open_buzzer |  | ||||||
|       name: inverter0_silence_buzzer_open_buzzer |  | ||||||
|     overload_bypass_function: |  | ||||||
|       id: inverter0_overload_bypass_function |  | ||||||
|       name: inverter0_overload_bypass_function |  | ||||||
|     lcd_escape_to_default: |  | ||||||
|       id: inverter0_lcd_escape_to_default |  | ||||||
|       name: inverter0_lcd_escape_to_default |  | ||||||
|     overload_restart_function: |  | ||||||
|       id: inverter0_overload_restart_function |  | ||||||
|       name: inverter0_overload_restart_function |  | ||||||
|     over_temperature_restart_function: |  | ||||||
|       id: inverter0_over_temperature_restart_function |  | ||||||
|       name: inverter0_over_temperature_restart_function |  | ||||||
|     backlight_on: |  | ||||||
|       id: inverter0_backlight_on |  | ||||||
|       name: inverter0_backlight_on |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage_out |  | ||||||
|  |  | ||||||
| sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     grid_rating_voltage: |  | ||||||
|       id: inverter0_grid_rating_voltage |  | ||||||
|       name: inverter0_grid_rating_voltage |  | ||||||
|     grid_rating_current: |  | ||||||
|       id: inverter0_grid_rating_current |  | ||||||
|       name: inverter0_grid_rating_current |  | ||||||
|     ac_output_rating_voltage: |  | ||||||
|       id: inverter0_ac_output_rating_voltage |  | ||||||
|       name: inverter0_ac_output_rating_voltage |  | ||||||
|     ac_output_rating_frequency: |  | ||||||
|       id: inverter0_ac_output_rating_frequency |  | ||||||
|       name: inverter0_ac_output_rating_frequency |  | ||||||
|     ac_output_rating_current: |  | ||||||
|       id: inverter0_ac_output_rating_current |  | ||||||
|       name: inverter0_ac_output_rating_current |  | ||||||
|     ac_output_rating_apparent_power: |  | ||||||
|       id: inverter0_ac_output_rating_apparent_power |  | ||||||
|       name: inverter0_ac_output_rating_apparent_power |  | ||||||
|     ac_output_rating_active_power: |  | ||||||
|       id: inverter0_ac_output_rating_active_power |  | ||||||
|       name: inverter0_ac_output_rating_active_power |  | ||||||
|     battery_rating_voltage: |  | ||||||
|       id: inverter0_battery_rating_voltage |  | ||||||
|       name: inverter0_battery_rating_voltage |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage |  | ||||||
|       name: inverter0_battery_recharge_voltage |  | ||||||
|     battery_under_voltage: |  | ||||||
|       id: inverter0_battery_under_voltage |  | ||||||
|       name: inverter0_battery_under_voltage |  | ||||||
|     battery_bulk_voltage: |  | ||||||
|       id: inverter0_battery_bulk_voltage |  | ||||||
|       name: inverter0_battery_bulk_voltage |  | ||||||
|     battery_float_voltage: |  | ||||||
|       id: inverter0_battery_float_voltage |  | ||||||
|       name: inverter0_battery_float_voltage |  | ||||||
|     battery_type: |  | ||||||
|       id: inverter0_battery_type |  | ||||||
|       name: inverter0_battery_type |  | ||||||
|     current_max_ac_charging_current: |  | ||||||
|       id: inverter0_current_max_ac_charging_current |  | ||||||
|       name: inverter0_current_max_ac_charging_current |  | ||||||
|     current_max_charging_current: |  | ||||||
|       id: inverter0_current_max_charging_current |  | ||||||
|       name: inverter0_current_max_charging_current |  | ||||||
|     input_voltage_range: |  | ||||||
|       id: inverter0_input_voltage_range |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     output_source_priority: |  | ||||||
|       id: inverter0_output_source_priority |  | ||||||
|       name: inverter0_output_source_priority |  | ||||||
|     charger_source_priority: |  | ||||||
|       id: inverter0_charger_source_priority |  | ||||||
|       name: inverter0_charger_source_priority |  | ||||||
|     parallel_max_num: |  | ||||||
|       id: inverter0_parallel_max_num |  | ||||||
|       name: inverter0_parallel_max_num |  | ||||||
|     machine_type: |  | ||||||
|       id: inverter0_machine_type |  | ||||||
|       name: inverter0_machine_type |  | ||||||
|     topology: |  | ||||||
|       id: inverter0_topology |  | ||||||
|       name: inverter0_topology |  | ||||||
|     output_mode: |  | ||||||
|       id: inverter0_output_mode |  | ||||||
|       name: inverter0_output_mode |  | ||||||
|     battery_redischarge_voltage: |  | ||||||
|       id: inverter0_battery_redischarge_voltage |  | ||||||
|       name: inverter0_battery_redischarge_voltage |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       id: inverter0_pv_ok_condition_for_parallel |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       id: inverter0_pv_power_balance |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|     grid_voltage: |  | ||||||
|       id: inverter0_grid_voltage |  | ||||||
|       name: inverter0_grid_voltage |  | ||||||
|     grid_frequency: |  | ||||||
|       id: inverter0_grid_frequency |  | ||||||
|       name: inverter0_grid_frequency |  | ||||||
|     ac_output_voltage: |  | ||||||
|       id: inverter0_ac_output_voltage |  | ||||||
|       name: inverter0_ac_output_voltage |  | ||||||
|     ac_output_frequency: |  | ||||||
|       id: inverter0_ac_output_frequency |  | ||||||
|       name: inverter0_ac_output_frequency |  | ||||||
|     ac_output_apparent_power: |  | ||||||
|       id: inverter0_ac_output_apparent_power |  | ||||||
|       name: inverter0_ac_output_apparent_power |  | ||||||
|     ac_output_active_power: |  | ||||||
|       id: inverter0_ac_output_active_power |  | ||||||
|       name: inverter0_ac_output_active_power |  | ||||||
|     output_load_percent: |  | ||||||
|       id: inverter0_output_load_percent |  | ||||||
|       name: inverter0_output_load_percent |  | ||||||
|     bus_voltage: |  | ||||||
|       id: inverter0_bus_voltage |  | ||||||
|       name: inverter0_bus_voltage |  | ||||||
|     battery_voltage: |  | ||||||
|       id: inverter0_battery_voltage |  | ||||||
|       name: inverter0_battery_voltage |  | ||||||
|     battery_charging_current: |  | ||||||
|       id: inverter0_battery_charging_current |  | ||||||
|       name: inverter0_battery_charging_current |  | ||||||
|     battery_capacity_percent: |  | ||||||
|       id: inverter0_battery_capacity_percent |  | ||||||
|       name: inverter0_battery_capacity_percent |  | ||||||
|     inverter_heat_sink_temperature: |  | ||||||
|       id: inverter0_inverter_heat_sink_temperature |  | ||||||
|       name: inverter0_inverter_heat_sink_temperature |  | ||||||
|     pv_input_current_for_battery: |  | ||||||
|       id: inverter0_pv_input_current_for_battery |  | ||||||
|       name: inverter0_pv_input_current_for_battery |  | ||||||
|     pv_input_voltage: |  | ||||||
|       id: inverter0_pv_input_voltage |  | ||||||
|       name: inverter0_pv_input_voltage |  | ||||||
|     battery_voltage_scc: |  | ||||||
|       id: inverter0_battery_voltage_scc |  | ||||||
|       name: inverter0_battery_voltage_scc |  | ||||||
|     battery_discharge_current: |  | ||||||
|       id: inverter0_battery_discharge_current |  | ||||||
|       name: inverter0_battery_discharge_current |  | ||||||
|     battery_voltage_offset_for_fans_on: |  | ||||||
|       id: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|       name: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|     eeprom_version: |  | ||||||
|       id: inverter0_eeprom_version |  | ||||||
|       name: inverter0_eeprom_version |  | ||||||
|     pv_charging_power: |  | ||||||
|       id: inverter0_pv_charging_power |  | ||||||
|       name: inverter0_pv_charging_power |  | ||||||
|  |  | ||||||
| switch: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     output_source_priority_utility: |  | ||||||
|       name: inverter0_output_source_priority_utility |  | ||||||
|     output_source_priority_solar: |  | ||||||
|       name: inverter0_output_source_priority_solar |  | ||||||
|     output_source_priority_battery: |  | ||||||
|       name: inverter0_output_source_priority_battery |  | ||||||
|     output_source_priority_hybrid: |  | ||||||
|       name: inverter0_output_source_priority_hybrid |  | ||||||
|     input_voltage_range: |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|  |  | ||||||
| text_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     device_mode: |  | ||||||
|       id: inverter0_device_mode |  | ||||||
|       name: inverter0_device_mode |  | ||||||
|     last_qpigs: |  | ||||||
|       id: inverter0_last_qpigs |  | ||||||
|       name: inverter0_last_qpigs |  | ||||||
|     last_qpiri: |  | ||||||
|       id: inverter0_last_qpiri |  | ||||||
|       name: inverter0_last_qpiri |  | ||||||
|     last_qmod: |  | ||||||
|       id: inverter0_last_qmod |  | ||||||
|       name: inverter0_last_qmod |  | ||||||
|     last_qflag: |  | ||||||
|       id: inverter0_last_qflag |  | ||||||
|       name: inverter0_last_qflag |  | ||||||
|   | |||||||
| @@ -1,249 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   tx_pin: GPIO17 | ||||||
|     then: |   rx_pin: GPIO16 | ||||||
|       - output.pipsolar.set_level: |  | ||||||
|           id: inverter0_battery_recharge_voltage_out |  | ||||||
|           value: 48.0 |  | ||||||
|  |  | ||||||
| uart: | <<: !include common.yaml | ||||||
|   - id: uart_pipsolar |  | ||||||
|     tx_pin: 17 |  | ||||||
|     rx_pin: 16 |  | ||||||
|     baud_rate: 115200 |  | ||||||
|  |  | ||||||
| pipsolar: |  | ||||||
|   id: inverter0 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     add_sbu_priority_version: |  | ||||||
|       id: inverter0_add_sbu_priority_version |  | ||||||
|       name: inverter0_add_sbu_priority_version |  | ||||||
|     configuration_status: |  | ||||||
|       id: inverter0_configuration_status |  | ||||||
|       name: inverter0_configuration_status |  | ||||||
|     scc_firmware_version: |  | ||||||
|       id: inverter0_scc_firmware_version |  | ||||||
|       name: inverter0_scc_firmware_version |  | ||||||
|     load_status: |  | ||||||
|       id: inverter0_load_status |  | ||||||
|       name: inverter0_load_status |  | ||||||
|     battery_voltage_to_steady_while_charging: |  | ||||||
|       id: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|       name: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|     charging_status: |  | ||||||
|       id: inverter0_charging_status |  | ||||||
|       name: inverter0_charging_status |  | ||||||
|     scc_charging_status: |  | ||||||
|       id: inverter0_scc_charging_status |  | ||||||
|       name: inverter0_scc_charging_status |  | ||||||
|     ac_charging_status: |  | ||||||
|       id: inverter0_ac_charging_status |  | ||||||
|       name: inverter0_ac_charging_status |  | ||||||
|     charging_to_floating_mode: |  | ||||||
|       id: inverter0_charging_to_floating_mode |  | ||||||
|       name: inverter0_charging_to_floating_mode |  | ||||||
|     switch_on: |  | ||||||
|       id: inverter0_switch_on |  | ||||||
|       name: inverter0_switch_on |  | ||||||
|     dustproof_installed: |  | ||||||
|       id: inverter0_dustproof_installed |  | ||||||
|       name: inverter0_dustproof_installed |  | ||||||
|     silence_buzzer_open_buzzer: |  | ||||||
|       id: inverter0_silence_buzzer_open_buzzer |  | ||||||
|       name: inverter0_silence_buzzer_open_buzzer |  | ||||||
|     overload_bypass_function: |  | ||||||
|       id: inverter0_overload_bypass_function |  | ||||||
|       name: inverter0_overload_bypass_function |  | ||||||
|     lcd_escape_to_default: |  | ||||||
|       id: inverter0_lcd_escape_to_default |  | ||||||
|       name: inverter0_lcd_escape_to_default |  | ||||||
|     overload_restart_function: |  | ||||||
|       id: inverter0_overload_restart_function |  | ||||||
|       name: inverter0_overload_restart_function |  | ||||||
|     over_temperature_restart_function: |  | ||||||
|       id: inverter0_over_temperature_restart_function |  | ||||||
|       name: inverter0_over_temperature_restart_function |  | ||||||
|     backlight_on: |  | ||||||
|       id: inverter0_backlight_on |  | ||||||
|       name: inverter0_backlight_on |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage_out |  | ||||||
|  |  | ||||||
| sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     grid_rating_voltage: |  | ||||||
|       id: inverter0_grid_rating_voltage |  | ||||||
|       name: inverter0_grid_rating_voltage |  | ||||||
|     grid_rating_current: |  | ||||||
|       id: inverter0_grid_rating_current |  | ||||||
|       name: inverter0_grid_rating_current |  | ||||||
|     ac_output_rating_voltage: |  | ||||||
|       id: inverter0_ac_output_rating_voltage |  | ||||||
|       name: inverter0_ac_output_rating_voltage |  | ||||||
|     ac_output_rating_frequency: |  | ||||||
|       id: inverter0_ac_output_rating_frequency |  | ||||||
|       name: inverter0_ac_output_rating_frequency |  | ||||||
|     ac_output_rating_current: |  | ||||||
|       id: inverter0_ac_output_rating_current |  | ||||||
|       name: inverter0_ac_output_rating_current |  | ||||||
|     ac_output_rating_apparent_power: |  | ||||||
|       id: inverter0_ac_output_rating_apparent_power |  | ||||||
|       name: inverter0_ac_output_rating_apparent_power |  | ||||||
|     ac_output_rating_active_power: |  | ||||||
|       id: inverter0_ac_output_rating_active_power |  | ||||||
|       name: inverter0_ac_output_rating_active_power |  | ||||||
|     battery_rating_voltage: |  | ||||||
|       id: inverter0_battery_rating_voltage |  | ||||||
|       name: inverter0_battery_rating_voltage |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage |  | ||||||
|       name: inverter0_battery_recharge_voltage |  | ||||||
|     battery_under_voltage: |  | ||||||
|       id: inverter0_battery_under_voltage |  | ||||||
|       name: inverter0_battery_under_voltage |  | ||||||
|     battery_bulk_voltage: |  | ||||||
|       id: inverter0_battery_bulk_voltage |  | ||||||
|       name: inverter0_battery_bulk_voltage |  | ||||||
|     battery_float_voltage: |  | ||||||
|       id: inverter0_battery_float_voltage |  | ||||||
|       name: inverter0_battery_float_voltage |  | ||||||
|     battery_type: |  | ||||||
|       id: inverter0_battery_type |  | ||||||
|       name: inverter0_battery_type |  | ||||||
|     current_max_ac_charging_current: |  | ||||||
|       id: inverter0_current_max_ac_charging_current |  | ||||||
|       name: inverter0_current_max_ac_charging_current |  | ||||||
|     current_max_charging_current: |  | ||||||
|       id: inverter0_current_max_charging_current |  | ||||||
|       name: inverter0_current_max_charging_current |  | ||||||
|     input_voltage_range: |  | ||||||
|       id: inverter0_input_voltage_range |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     output_source_priority: |  | ||||||
|       id: inverter0_output_source_priority |  | ||||||
|       name: inverter0_output_source_priority |  | ||||||
|     charger_source_priority: |  | ||||||
|       id: inverter0_charger_source_priority |  | ||||||
|       name: inverter0_charger_source_priority |  | ||||||
|     parallel_max_num: |  | ||||||
|       id: inverter0_parallel_max_num |  | ||||||
|       name: inverter0_parallel_max_num |  | ||||||
|     machine_type: |  | ||||||
|       id: inverter0_machine_type |  | ||||||
|       name: inverter0_machine_type |  | ||||||
|     topology: |  | ||||||
|       id: inverter0_topology |  | ||||||
|       name: inverter0_topology |  | ||||||
|     output_mode: |  | ||||||
|       id: inverter0_output_mode |  | ||||||
|       name: inverter0_output_mode |  | ||||||
|     battery_redischarge_voltage: |  | ||||||
|       id: inverter0_battery_redischarge_voltage |  | ||||||
|       name: inverter0_battery_redischarge_voltage |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       id: inverter0_pv_ok_condition_for_parallel |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       id: inverter0_pv_power_balance |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|     grid_voltage: |  | ||||||
|       id: inverter0_grid_voltage |  | ||||||
|       name: inverter0_grid_voltage |  | ||||||
|     grid_frequency: |  | ||||||
|       id: inverter0_grid_frequency |  | ||||||
|       name: inverter0_grid_frequency |  | ||||||
|     ac_output_voltage: |  | ||||||
|       id: inverter0_ac_output_voltage |  | ||||||
|       name: inverter0_ac_output_voltage |  | ||||||
|     ac_output_frequency: |  | ||||||
|       id: inverter0_ac_output_frequency |  | ||||||
|       name: inverter0_ac_output_frequency |  | ||||||
|     ac_output_apparent_power: |  | ||||||
|       id: inverter0_ac_output_apparent_power |  | ||||||
|       name: inverter0_ac_output_apparent_power |  | ||||||
|     ac_output_active_power: |  | ||||||
|       id: inverter0_ac_output_active_power |  | ||||||
|       name: inverter0_ac_output_active_power |  | ||||||
|     output_load_percent: |  | ||||||
|       id: inverter0_output_load_percent |  | ||||||
|       name: inverter0_output_load_percent |  | ||||||
|     bus_voltage: |  | ||||||
|       id: inverter0_bus_voltage |  | ||||||
|       name: inverter0_bus_voltage |  | ||||||
|     battery_voltage: |  | ||||||
|       id: inverter0_battery_voltage |  | ||||||
|       name: inverter0_battery_voltage |  | ||||||
|     battery_charging_current: |  | ||||||
|       id: inverter0_battery_charging_current |  | ||||||
|       name: inverter0_battery_charging_current |  | ||||||
|     battery_capacity_percent: |  | ||||||
|       id: inverter0_battery_capacity_percent |  | ||||||
|       name: inverter0_battery_capacity_percent |  | ||||||
|     inverter_heat_sink_temperature: |  | ||||||
|       id: inverter0_inverter_heat_sink_temperature |  | ||||||
|       name: inverter0_inverter_heat_sink_temperature |  | ||||||
|     pv_input_current_for_battery: |  | ||||||
|       id: inverter0_pv_input_current_for_battery |  | ||||||
|       name: inverter0_pv_input_current_for_battery |  | ||||||
|     pv_input_voltage: |  | ||||||
|       id: inverter0_pv_input_voltage |  | ||||||
|       name: inverter0_pv_input_voltage |  | ||||||
|     battery_voltage_scc: |  | ||||||
|       id: inverter0_battery_voltage_scc |  | ||||||
|       name: inverter0_battery_voltage_scc |  | ||||||
|     battery_discharge_current: |  | ||||||
|       id: inverter0_battery_discharge_current |  | ||||||
|       name: inverter0_battery_discharge_current |  | ||||||
|     battery_voltage_offset_for_fans_on: |  | ||||||
|       id: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|       name: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|     eeprom_version: |  | ||||||
|       id: inverter0_eeprom_version |  | ||||||
|       name: inverter0_eeprom_version |  | ||||||
|     pv_charging_power: |  | ||||||
|       id: inverter0_pv_charging_power |  | ||||||
|       name: inverter0_pv_charging_power |  | ||||||
|  |  | ||||||
| switch: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     output_source_priority_utility: |  | ||||||
|       name: inverter0_output_source_priority_utility |  | ||||||
|     output_source_priority_solar: |  | ||||||
|       name: inverter0_output_source_priority_solar |  | ||||||
|     output_source_priority_battery: |  | ||||||
|       name: inverter0_output_source_priority_battery |  | ||||||
|     output_source_priority_hybrid: |  | ||||||
|       name: inverter0_output_source_priority_hybrid |  | ||||||
|     input_voltage_range: |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|  |  | ||||||
| text_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     device_mode: |  | ||||||
|       id: inverter0_device_mode |  | ||||||
|       name: inverter0_device_mode |  | ||||||
|     last_qpigs: |  | ||||||
|       id: inverter0_last_qpigs |  | ||||||
|       name: inverter0_last_qpigs |  | ||||||
|     last_qpiri: |  | ||||||
|       id: inverter0_last_qpiri |  | ||||||
|       name: inverter0_last_qpiri |  | ||||||
|     last_qmod: |  | ||||||
|       id: inverter0_last_qmod |  | ||||||
|       name: inverter0_last_qmod |  | ||||||
|     last_qflag: |  | ||||||
|       id: inverter0_last_qflag |  | ||||||
|       name: inverter0_last_qflag |  | ||||||
|   | |||||||
| @@ -1,249 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   tx_pin: GPIO4 | ||||||
|     then: |   rx_pin: GPIO5 | ||||||
|       - output.pipsolar.set_level: |  | ||||||
|           id: inverter0_battery_recharge_voltage_out |  | ||||||
|           value: 48.0 |  | ||||||
|  |  | ||||||
| uart: | <<: !include common.yaml | ||||||
|   - id: uart_pipsolar |  | ||||||
|     tx_pin: 4 |  | ||||||
|     rx_pin: 5 |  | ||||||
|     baud_rate: 115200 |  | ||||||
|  |  | ||||||
| pipsolar: |  | ||||||
|   id: inverter0 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     add_sbu_priority_version: |  | ||||||
|       id: inverter0_add_sbu_priority_version |  | ||||||
|       name: inverter0_add_sbu_priority_version |  | ||||||
|     configuration_status: |  | ||||||
|       id: inverter0_configuration_status |  | ||||||
|       name: inverter0_configuration_status |  | ||||||
|     scc_firmware_version: |  | ||||||
|       id: inverter0_scc_firmware_version |  | ||||||
|       name: inverter0_scc_firmware_version |  | ||||||
|     load_status: |  | ||||||
|       id: inverter0_load_status |  | ||||||
|       name: inverter0_load_status |  | ||||||
|     battery_voltage_to_steady_while_charging: |  | ||||||
|       id: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|       name: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|     charging_status: |  | ||||||
|       id: inverter0_charging_status |  | ||||||
|       name: inverter0_charging_status |  | ||||||
|     scc_charging_status: |  | ||||||
|       id: inverter0_scc_charging_status |  | ||||||
|       name: inverter0_scc_charging_status |  | ||||||
|     ac_charging_status: |  | ||||||
|       id: inverter0_ac_charging_status |  | ||||||
|       name: inverter0_ac_charging_status |  | ||||||
|     charging_to_floating_mode: |  | ||||||
|       id: inverter0_charging_to_floating_mode |  | ||||||
|       name: inverter0_charging_to_floating_mode |  | ||||||
|     switch_on: |  | ||||||
|       id: inverter0_switch_on |  | ||||||
|       name: inverter0_switch_on |  | ||||||
|     dustproof_installed: |  | ||||||
|       id: inverter0_dustproof_installed |  | ||||||
|       name: inverter0_dustproof_installed |  | ||||||
|     silence_buzzer_open_buzzer: |  | ||||||
|       id: inverter0_silence_buzzer_open_buzzer |  | ||||||
|       name: inverter0_silence_buzzer_open_buzzer |  | ||||||
|     overload_bypass_function: |  | ||||||
|       id: inverter0_overload_bypass_function |  | ||||||
|       name: inverter0_overload_bypass_function |  | ||||||
|     lcd_escape_to_default: |  | ||||||
|       id: inverter0_lcd_escape_to_default |  | ||||||
|       name: inverter0_lcd_escape_to_default |  | ||||||
|     overload_restart_function: |  | ||||||
|       id: inverter0_overload_restart_function |  | ||||||
|       name: inverter0_overload_restart_function |  | ||||||
|     over_temperature_restart_function: |  | ||||||
|       id: inverter0_over_temperature_restart_function |  | ||||||
|       name: inverter0_over_temperature_restart_function |  | ||||||
|     backlight_on: |  | ||||||
|       id: inverter0_backlight_on |  | ||||||
|       name: inverter0_backlight_on |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage_out |  | ||||||
|  |  | ||||||
| sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     grid_rating_voltage: |  | ||||||
|       id: inverter0_grid_rating_voltage |  | ||||||
|       name: inverter0_grid_rating_voltage |  | ||||||
|     grid_rating_current: |  | ||||||
|       id: inverter0_grid_rating_current |  | ||||||
|       name: inverter0_grid_rating_current |  | ||||||
|     ac_output_rating_voltage: |  | ||||||
|       id: inverter0_ac_output_rating_voltage |  | ||||||
|       name: inverter0_ac_output_rating_voltage |  | ||||||
|     ac_output_rating_frequency: |  | ||||||
|       id: inverter0_ac_output_rating_frequency |  | ||||||
|       name: inverter0_ac_output_rating_frequency |  | ||||||
|     ac_output_rating_current: |  | ||||||
|       id: inverter0_ac_output_rating_current |  | ||||||
|       name: inverter0_ac_output_rating_current |  | ||||||
|     ac_output_rating_apparent_power: |  | ||||||
|       id: inverter0_ac_output_rating_apparent_power |  | ||||||
|       name: inverter0_ac_output_rating_apparent_power |  | ||||||
|     ac_output_rating_active_power: |  | ||||||
|       id: inverter0_ac_output_rating_active_power |  | ||||||
|       name: inverter0_ac_output_rating_active_power |  | ||||||
|     battery_rating_voltage: |  | ||||||
|       id: inverter0_battery_rating_voltage |  | ||||||
|       name: inverter0_battery_rating_voltage |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage |  | ||||||
|       name: inverter0_battery_recharge_voltage |  | ||||||
|     battery_under_voltage: |  | ||||||
|       id: inverter0_battery_under_voltage |  | ||||||
|       name: inverter0_battery_under_voltage |  | ||||||
|     battery_bulk_voltage: |  | ||||||
|       id: inverter0_battery_bulk_voltage |  | ||||||
|       name: inverter0_battery_bulk_voltage |  | ||||||
|     battery_float_voltage: |  | ||||||
|       id: inverter0_battery_float_voltage |  | ||||||
|       name: inverter0_battery_float_voltage |  | ||||||
|     battery_type: |  | ||||||
|       id: inverter0_battery_type |  | ||||||
|       name: inverter0_battery_type |  | ||||||
|     current_max_ac_charging_current: |  | ||||||
|       id: inverter0_current_max_ac_charging_current |  | ||||||
|       name: inverter0_current_max_ac_charging_current |  | ||||||
|     current_max_charging_current: |  | ||||||
|       id: inverter0_current_max_charging_current |  | ||||||
|       name: inverter0_current_max_charging_current |  | ||||||
|     input_voltage_range: |  | ||||||
|       id: inverter0_input_voltage_range |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     output_source_priority: |  | ||||||
|       id: inverter0_output_source_priority |  | ||||||
|       name: inverter0_output_source_priority |  | ||||||
|     charger_source_priority: |  | ||||||
|       id: inverter0_charger_source_priority |  | ||||||
|       name: inverter0_charger_source_priority |  | ||||||
|     parallel_max_num: |  | ||||||
|       id: inverter0_parallel_max_num |  | ||||||
|       name: inverter0_parallel_max_num |  | ||||||
|     machine_type: |  | ||||||
|       id: inverter0_machine_type |  | ||||||
|       name: inverter0_machine_type |  | ||||||
|     topology: |  | ||||||
|       id: inverter0_topology |  | ||||||
|       name: inverter0_topology |  | ||||||
|     output_mode: |  | ||||||
|       id: inverter0_output_mode |  | ||||||
|       name: inverter0_output_mode |  | ||||||
|     battery_redischarge_voltage: |  | ||||||
|       id: inverter0_battery_redischarge_voltage |  | ||||||
|       name: inverter0_battery_redischarge_voltage |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       id: inverter0_pv_ok_condition_for_parallel |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       id: inverter0_pv_power_balance |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|     grid_voltage: |  | ||||||
|       id: inverter0_grid_voltage |  | ||||||
|       name: inverter0_grid_voltage |  | ||||||
|     grid_frequency: |  | ||||||
|       id: inverter0_grid_frequency |  | ||||||
|       name: inverter0_grid_frequency |  | ||||||
|     ac_output_voltage: |  | ||||||
|       id: inverter0_ac_output_voltage |  | ||||||
|       name: inverter0_ac_output_voltage |  | ||||||
|     ac_output_frequency: |  | ||||||
|       id: inverter0_ac_output_frequency |  | ||||||
|       name: inverter0_ac_output_frequency |  | ||||||
|     ac_output_apparent_power: |  | ||||||
|       id: inverter0_ac_output_apparent_power |  | ||||||
|       name: inverter0_ac_output_apparent_power |  | ||||||
|     ac_output_active_power: |  | ||||||
|       id: inverter0_ac_output_active_power |  | ||||||
|       name: inverter0_ac_output_active_power |  | ||||||
|     output_load_percent: |  | ||||||
|       id: inverter0_output_load_percent |  | ||||||
|       name: inverter0_output_load_percent |  | ||||||
|     bus_voltage: |  | ||||||
|       id: inverter0_bus_voltage |  | ||||||
|       name: inverter0_bus_voltage |  | ||||||
|     battery_voltage: |  | ||||||
|       id: inverter0_battery_voltage |  | ||||||
|       name: inverter0_battery_voltage |  | ||||||
|     battery_charging_current: |  | ||||||
|       id: inverter0_battery_charging_current |  | ||||||
|       name: inverter0_battery_charging_current |  | ||||||
|     battery_capacity_percent: |  | ||||||
|       id: inverter0_battery_capacity_percent |  | ||||||
|       name: inverter0_battery_capacity_percent |  | ||||||
|     inverter_heat_sink_temperature: |  | ||||||
|       id: inverter0_inverter_heat_sink_temperature |  | ||||||
|       name: inverter0_inverter_heat_sink_temperature |  | ||||||
|     pv_input_current_for_battery: |  | ||||||
|       id: inverter0_pv_input_current_for_battery |  | ||||||
|       name: inverter0_pv_input_current_for_battery |  | ||||||
|     pv_input_voltage: |  | ||||||
|       id: inverter0_pv_input_voltage |  | ||||||
|       name: inverter0_pv_input_voltage |  | ||||||
|     battery_voltage_scc: |  | ||||||
|       id: inverter0_battery_voltage_scc |  | ||||||
|       name: inverter0_battery_voltage_scc |  | ||||||
|     battery_discharge_current: |  | ||||||
|       id: inverter0_battery_discharge_current |  | ||||||
|       name: inverter0_battery_discharge_current |  | ||||||
|     battery_voltage_offset_for_fans_on: |  | ||||||
|       id: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|       name: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|     eeprom_version: |  | ||||||
|       id: inverter0_eeprom_version |  | ||||||
|       name: inverter0_eeprom_version |  | ||||||
|     pv_charging_power: |  | ||||||
|       id: inverter0_pv_charging_power |  | ||||||
|       name: inverter0_pv_charging_power |  | ||||||
|  |  | ||||||
| switch: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     output_source_priority_utility: |  | ||||||
|       name: inverter0_output_source_priority_utility |  | ||||||
|     output_source_priority_solar: |  | ||||||
|       name: inverter0_output_source_priority_solar |  | ||||||
|     output_source_priority_battery: |  | ||||||
|       name: inverter0_output_source_priority_battery |  | ||||||
|     output_source_priority_hybrid: |  | ||||||
|       name: inverter0_output_source_priority_hybrid |  | ||||||
|     input_voltage_range: |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|  |  | ||||||
| text_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     device_mode: |  | ||||||
|       id: inverter0_device_mode |  | ||||||
|       name: inverter0_device_mode |  | ||||||
|     last_qpigs: |  | ||||||
|       id: inverter0_last_qpigs |  | ||||||
|       name: inverter0_last_qpigs |  | ||||||
|     last_qpiri: |  | ||||||
|       id: inverter0_last_qpiri |  | ||||||
|       name: inverter0_last_qpiri |  | ||||||
|     last_qmod: |  | ||||||
|       id: inverter0_last_qmod |  | ||||||
|       name: inverter0_last_qmod |  | ||||||
|     last_qflag: |  | ||||||
|       id: inverter0_last_qflag |  | ||||||
|       name: inverter0_last_qflag |  | ||||||
|   | |||||||
| @@ -1,249 +1,5 @@ | |||||||
| esphome: | substitutions: | ||||||
|   on_boot: |   tx_pin: GPIO4 | ||||||
|     then: |   rx_pin: GPIO5 | ||||||
|       - output.pipsolar.set_level: |  | ||||||
|           id: inverter0_battery_recharge_voltage_out |  | ||||||
|           value: 48.0 |  | ||||||
|  |  | ||||||
| uart: | <<: !include common.yaml | ||||||
|   - id: uart_pipsolar |  | ||||||
|     tx_pin: 4 |  | ||||||
|     rx_pin: 5 |  | ||||||
|     baud_rate: 115200 |  | ||||||
|  |  | ||||||
| pipsolar: |  | ||||||
|   id: inverter0 |  | ||||||
|  |  | ||||||
| binary_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     add_sbu_priority_version: |  | ||||||
|       id: inverter0_add_sbu_priority_version |  | ||||||
|       name: inverter0_add_sbu_priority_version |  | ||||||
|     configuration_status: |  | ||||||
|       id: inverter0_configuration_status |  | ||||||
|       name: inverter0_configuration_status |  | ||||||
|     scc_firmware_version: |  | ||||||
|       id: inverter0_scc_firmware_version |  | ||||||
|       name: inverter0_scc_firmware_version |  | ||||||
|     load_status: |  | ||||||
|       id: inverter0_load_status |  | ||||||
|       name: inverter0_load_status |  | ||||||
|     battery_voltage_to_steady_while_charging: |  | ||||||
|       id: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|       name: inverter0_battery_voltage_to_steady_while_charging |  | ||||||
|     charging_status: |  | ||||||
|       id: inverter0_charging_status |  | ||||||
|       name: inverter0_charging_status |  | ||||||
|     scc_charging_status: |  | ||||||
|       id: inverter0_scc_charging_status |  | ||||||
|       name: inverter0_scc_charging_status |  | ||||||
|     ac_charging_status: |  | ||||||
|       id: inverter0_ac_charging_status |  | ||||||
|       name: inverter0_ac_charging_status |  | ||||||
|     charging_to_floating_mode: |  | ||||||
|       id: inverter0_charging_to_floating_mode |  | ||||||
|       name: inverter0_charging_to_floating_mode |  | ||||||
|     switch_on: |  | ||||||
|       id: inverter0_switch_on |  | ||||||
|       name: inverter0_switch_on |  | ||||||
|     dustproof_installed: |  | ||||||
|       id: inverter0_dustproof_installed |  | ||||||
|       name: inverter0_dustproof_installed |  | ||||||
|     silence_buzzer_open_buzzer: |  | ||||||
|       id: inverter0_silence_buzzer_open_buzzer |  | ||||||
|       name: inverter0_silence_buzzer_open_buzzer |  | ||||||
|     overload_bypass_function: |  | ||||||
|       id: inverter0_overload_bypass_function |  | ||||||
|       name: inverter0_overload_bypass_function |  | ||||||
|     lcd_escape_to_default: |  | ||||||
|       id: inverter0_lcd_escape_to_default |  | ||||||
|       name: inverter0_lcd_escape_to_default |  | ||||||
|     overload_restart_function: |  | ||||||
|       id: inverter0_overload_restart_function |  | ||||||
|       name: inverter0_overload_restart_function |  | ||||||
|     over_temperature_restart_function: |  | ||||||
|       id: inverter0_over_temperature_restart_function |  | ||||||
|       name: inverter0_over_temperature_restart_function |  | ||||||
|     backlight_on: |  | ||||||
|       id: inverter0_backlight_on |  | ||||||
|       name: inverter0_backlight_on |  | ||||||
|  |  | ||||||
| output: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage_out |  | ||||||
|  |  | ||||||
| sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     grid_rating_voltage: |  | ||||||
|       id: inverter0_grid_rating_voltage |  | ||||||
|       name: inverter0_grid_rating_voltage |  | ||||||
|     grid_rating_current: |  | ||||||
|       id: inverter0_grid_rating_current |  | ||||||
|       name: inverter0_grid_rating_current |  | ||||||
|     ac_output_rating_voltage: |  | ||||||
|       id: inverter0_ac_output_rating_voltage |  | ||||||
|       name: inverter0_ac_output_rating_voltage |  | ||||||
|     ac_output_rating_frequency: |  | ||||||
|       id: inverter0_ac_output_rating_frequency |  | ||||||
|       name: inverter0_ac_output_rating_frequency |  | ||||||
|     ac_output_rating_current: |  | ||||||
|       id: inverter0_ac_output_rating_current |  | ||||||
|       name: inverter0_ac_output_rating_current |  | ||||||
|     ac_output_rating_apparent_power: |  | ||||||
|       id: inverter0_ac_output_rating_apparent_power |  | ||||||
|       name: inverter0_ac_output_rating_apparent_power |  | ||||||
|     ac_output_rating_active_power: |  | ||||||
|       id: inverter0_ac_output_rating_active_power |  | ||||||
|       name: inverter0_ac_output_rating_active_power |  | ||||||
|     battery_rating_voltage: |  | ||||||
|       id: inverter0_battery_rating_voltage |  | ||||||
|       name: inverter0_battery_rating_voltage |  | ||||||
|     battery_recharge_voltage: |  | ||||||
|       id: inverter0_battery_recharge_voltage |  | ||||||
|       name: inverter0_battery_recharge_voltage |  | ||||||
|     battery_under_voltage: |  | ||||||
|       id: inverter0_battery_under_voltage |  | ||||||
|       name: inverter0_battery_under_voltage |  | ||||||
|     battery_bulk_voltage: |  | ||||||
|       id: inverter0_battery_bulk_voltage |  | ||||||
|       name: inverter0_battery_bulk_voltage |  | ||||||
|     battery_float_voltage: |  | ||||||
|       id: inverter0_battery_float_voltage |  | ||||||
|       name: inverter0_battery_float_voltage |  | ||||||
|     battery_type: |  | ||||||
|       id: inverter0_battery_type |  | ||||||
|       name: inverter0_battery_type |  | ||||||
|     current_max_ac_charging_current: |  | ||||||
|       id: inverter0_current_max_ac_charging_current |  | ||||||
|       name: inverter0_current_max_ac_charging_current |  | ||||||
|     current_max_charging_current: |  | ||||||
|       id: inverter0_current_max_charging_current |  | ||||||
|       name: inverter0_current_max_charging_current |  | ||||||
|     input_voltage_range: |  | ||||||
|       id: inverter0_input_voltage_range |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     output_source_priority: |  | ||||||
|       id: inverter0_output_source_priority |  | ||||||
|       name: inverter0_output_source_priority |  | ||||||
|     charger_source_priority: |  | ||||||
|       id: inverter0_charger_source_priority |  | ||||||
|       name: inverter0_charger_source_priority |  | ||||||
|     parallel_max_num: |  | ||||||
|       id: inverter0_parallel_max_num |  | ||||||
|       name: inverter0_parallel_max_num |  | ||||||
|     machine_type: |  | ||||||
|       id: inverter0_machine_type |  | ||||||
|       name: inverter0_machine_type |  | ||||||
|     topology: |  | ||||||
|       id: inverter0_topology |  | ||||||
|       name: inverter0_topology |  | ||||||
|     output_mode: |  | ||||||
|       id: inverter0_output_mode |  | ||||||
|       name: inverter0_output_mode |  | ||||||
|     battery_redischarge_voltage: |  | ||||||
|       id: inverter0_battery_redischarge_voltage |  | ||||||
|       name: inverter0_battery_redischarge_voltage |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       id: inverter0_pv_ok_condition_for_parallel |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       id: inverter0_pv_power_balance |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|     grid_voltage: |  | ||||||
|       id: inverter0_grid_voltage |  | ||||||
|       name: inverter0_grid_voltage |  | ||||||
|     grid_frequency: |  | ||||||
|       id: inverter0_grid_frequency |  | ||||||
|       name: inverter0_grid_frequency |  | ||||||
|     ac_output_voltage: |  | ||||||
|       id: inverter0_ac_output_voltage |  | ||||||
|       name: inverter0_ac_output_voltage |  | ||||||
|     ac_output_frequency: |  | ||||||
|       id: inverter0_ac_output_frequency |  | ||||||
|       name: inverter0_ac_output_frequency |  | ||||||
|     ac_output_apparent_power: |  | ||||||
|       id: inverter0_ac_output_apparent_power |  | ||||||
|       name: inverter0_ac_output_apparent_power |  | ||||||
|     ac_output_active_power: |  | ||||||
|       id: inverter0_ac_output_active_power |  | ||||||
|       name: inverter0_ac_output_active_power |  | ||||||
|     output_load_percent: |  | ||||||
|       id: inverter0_output_load_percent |  | ||||||
|       name: inverter0_output_load_percent |  | ||||||
|     bus_voltage: |  | ||||||
|       id: inverter0_bus_voltage |  | ||||||
|       name: inverter0_bus_voltage |  | ||||||
|     battery_voltage: |  | ||||||
|       id: inverter0_battery_voltage |  | ||||||
|       name: inverter0_battery_voltage |  | ||||||
|     battery_charging_current: |  | ||||||
|       id: inverter0_battery_charging_current |  | ||||||
|       name: inverter0_battery_charging_current |  | ||||||
|     battery_capacity_percent: |  | ||||||
|       id: inverter0_battery_capacity_percent |  | ||||||
|       name: inverter0_battery_capacity_percent |  | ||||||
|     inverter_heat_sink_temperature: |  | ||||||
|       id: inverter0_inverter_heat_sink_temperature |  | ||||||
|       name: inverter0_inverter_heat_sink_temperature |  | ||||||
|     pv_input_current_for_battery: |  | ||||||
|       id: inverter0_pv_input_current_for_battery |  | ||||||
|       name: inverter0_pv_input_current_for_battery |  | ||||||
|     pv_input_voltage: |  | ||||||
|       id: inverter0_pv_input_voltage |  | ||||||
|       name: inverter0_pv_input_voltage |  | ||||||
|     battery_voltage_scc: |  | ||||||
|       id: inverter0_battery_voltage_scc |  | ||||||
|       name: inverter0_battery_voltage_scc |  | ||||||
|     battery_discharge_current: |  | ||||||
|       id: inverter0_battery_discharge_current |  | ||||||
|       name: inverter0_battery_discharge_current |  | ||||||
|     battery_voltage_offset_for_fans_on: |  | ||||||
|       id: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|       name: inverter0_battery_voltage_offset_for_fans_on |  | ||||||
|     eeprom_version: |  | ||||||
|       id: inverter0_eeprom_version |  | ||||||
|       name: inverter0_eeprom_version |  | ||||||
|     pv_charging_power: |  | ||||||
|       id: inverter0_pv_charging_power |  | ||||||
|       name: inverter0_pv_charging_power |  | ||||||
|  |  | ||||||
| switch: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     output_source_priority_utility: |  | ||||||
|       name: inverter0_output_source_priority_utility |  | ||||||
|     output_source_priority_solar: |  | ||||||
|       name: inverter0_output_source_priority_solar |  | ||||||
|     output_source_priority_battery: |  | ||||||
|       name: inverter0_output_source_priority_battery |  | ||||||
|     output_source_priority_hybrid: |  | ||||||
|       name: inverter0_output_source_priority_hybrid |  | ||||||
|     input_voltage_range: |  | ||||||
|       name: inverter0_input_voltage_range |  | ||||||
|     pv_ok_condition_for_parallel: |  | ||||||
|       name: inverter0_pv_ok_condition_for_parallel |  | ||||||
|     pv_power_balance: |  | ||||||
|       name: inverter0_pv_power_balance |  | ||||||
|  |  | ||||||
| text_sensor: |  | ||||||
|   - platform: pipsolar |  | ||||||
|     pipsolar_id: inverter0 |  | ||||||
|     device_mode: |  | ||||||
|       id: inverter0_device_mode |  | ||||||
|       name: inverter0_device_mode |  | ||||||
|     last_qpigs: |  | ||||||
|       id: inverter0_last_qpigs |  | ||||||
|       name: inverter0_last_qpigs |  | ||||||
|     last_qpiri: |  | ||||||
|       id: inverter0_last_qpiri |  | ||||||
|       name: inverter0_last_qpiri |  | ||||||
|     last_qmod: |  | ||||||
|       id: inverter0_last_qmod |  | ||||||
|       name: inverter0_last_qmod |  | ||||||
|     last_qflag: |  | ||||||
|       id: inverter0_last_qflag |  | ||||||
|       name: inverter0_last_qflag |  | ||||||
|   | |||||||
							
								
								
									
										10
									
								
								tests/components/pm1006/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								tests/components/pm1006/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | |||||||
|  | uart: | ||||||
|  |   - id: uart_pm1006 | ||||||
|  |     tx_pin: ${tx_pin} | ||||||
|  |     rx_pin: ${rx_pin} | ||||||
|  |     baud_rate: 9600 | ||||||
|  |  | ||||||
|  | sensor: | ||||||
|  |   - platform: pm1006 | ||||||
|  |     pm_2_5: | ||||||
|  |       name: Particulate Matter 2.5µm Concentration | ||||||
| @@ -1,10 +1,5 @@ | |||||||
| uart: | substitutions: | ||||||
|   - id: uart_pm1006 |   tx_pin: GPIO17 | ||||||
|     tx_pin: 17 |   rx_pin: GPIO16 | ||||||
|     rx_pin: 16 |  | ||||||
|     baud_rate: 9600 |  | ||||||
|  |  | ||||||
| sensor: | <<: !include common.yaml | ||||||
|   - platform: pm1006 |  | ||||||
|     pm_2_5: |  | ||||||
|       name: Particulate Matter 2.5µm Concentration |  | ||||||
|   | |||||||
| @@ -1,10 +1,5 @@ | |||||||
| uart: | substitutions: | ||||||
|   - id: uart_pm1006 |   tx_pin: GPIO4 | ||||||
|     tx_pin: 4 |   rx_pin: GPIO5 | ||||||
|     rx_pin: 5 |  | ||||||
|     baud_rate: 9600 |  | ||||||
|  |  | ||||||
| sensor: | <<: !include common.yaml | ||||||
|   - platform: pm1006 |  | ||||||
|     pm_2_5: |  | ||||||
|       name: Particulate Matter 2.5µm Concentration |  | ||||||
|   | |||||||
| @@ -1,10 +1,5 @@ | |||||||
| uart: | substitutions: | ||||||
|   - id: uart_pm1006 |   tx_pin: GPIO4 | ||||||
|     tx_pin: 4 |   rx_pin: GPIO5 | ||||||
|     rx_pin: 5 |  | ||||||
|     baud_rate: 9600 |  | ||||||
|  |  | ||||||
| sensor: | <<: !include common.yaml | ||||||
|   - platform: pm1006 |  | ||||||
|     pm_2_5: |  | ||||||
|       name: Particulate Matter 2.5µm Concentration |  | ||||||
|   | |||||||
| @@ -1,10 +1,5 @@ | |||||||
| uart: | substitutions: | ||||||
|   - id: uart_pm1006 |   tx_pin: GPIO17 | ||||||
|     tx_pin: 17 |   rx_pin: GPIO16 | ||||||
|     rx_pin: 16 |  | ||||||
|     baud_rate: 9600 |  | ||||||
|  |  | ||||||
| sensor: | <<: !include common.yaml | ||||||
|   - platform: pm1006 |  | ||||||
|     pm_2_5: |  | ||||||
|       name: Particulate Matter 2.5µm Concentration |  | ||||||
|   | |||||||
| @@ -1,10 +1,5 @@ | |||||||
| uart: | substitutions: | ||||||
|   - id: uart_pm1006 |   tx_pin: GPIO4 | ||||||
|     tx_pin: 4 |   rx_pin: GPIO5 | ||||||
|     rx_pin: 5 |  | ||||||
|     baud_rate: 9600 |  | ||||||
|  |  | ||||||
| sensor: | <<: !include common.yaml | ||||||
|   - platform: pm1006 |  | ||||||
|     pm_2_5: |  | ||||||
|       name: Particulate Matter 2.5µm Concentration |  | ||||||
|   | |||||||
| @@ -1,10 +1,5 @@ | |||||||
| uart: | substitutions: | ||||||
|   - id: uart_pm1006 |   tx_pin: GPIO4 | ||||||
|     tx_pin: 4 |   rx_pin: GPIO5 | ||||||
|     rx_pin: 5 |  | ||||||
|     baud_rate: 9600 |  | ||||||
|  |  | ||||||
| sensor: | <<: !include common.yaml | ||||||
|   - platform: pm1006 |  | ||||||
|     pm_2_5: |  | ||||||
|       name: Particulate Matter 2.5µm Concentration |  | ||||||
|   | |||||||
							
								
								
									
										27
									
								
								tests/components/pmsa003i/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								tests/components/pmsa003i/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | |||||||
|  | i2c: | ||||||
|  |   - id: i2c_pmsa003i | ||||||
|  |     scl: ${scl_pin} | ||||||
|  |     sda: ${sda_pin} | ||||||
|  |  | ||||||
|  | sensor: | ||||||
|  |   - platform: pmsa003i | ||||||
|  |     pm_1_0: | ||||||
|  |       name: PMSA003i PM1.0 | ||||||
|  |     pm_2_5: | ||||||
|  |       name: PMSA003i PM2.5 | ||||||
|  |     pm_10_0: | ||||||
|  |       name: PMSA003i PM10.0 | ||||||
|  |     pmc_0_3: | ||||||
|  |       name: PMSA003i PMC <0.3µm | ||||||
|  |     pmc_0_5: | ||||||
|  |       name: PMSA003i PMC <0.5µm | ||||||
|  |     pmc_1_0: | ||||||
|  |       name: PMSA003i PMC <1µm | ||||||
|  |     pmc_2_5: | ||||||
|  |       name: PMSA003i PMC <2.5µm | ||||||
|  |     pmc_5_0: | ||||||
|  |       name: PMSA003i PMC <5µm | ||||||
|  |     pmc_10_0: | ||||||
|  |       name: PMSA003i PMC <10µm | ||||||
|  |     address: 0x12 | ||||||
|  |     standard_units: true | ||||||
| @@ -1,27 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pmsa003i |   scl_pin: GPIO16 | ||||||
|     scl: 16 |   sda_pin: GPIO17 | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| sensor: | <<: !include common.yaml | ||||||
|   - platform: pmsa003i |  | ||||||
|     pm_1_0: |  | ||||||
|       name: PMSA003i PM1.0 |  | ||||||
|     pm_2_5: |  | ||||||
|       name: PMSA003i PM2.5 |  | ||||||
|     pm_10_0: |  | ||||||
|       name: PMSA003i PM10.0 |  | ||||||
|     pmc_0_3: |  | ||||||
|       name: PMSA003i PMC <0.3µm |  | ||||||
|     pmc_0_5: |  | ||||||
|       name: PMSA003i PMC <0.5µm |  | ||||||
|     pmc_1_0: |  | ||||||
|       name: PMSA003i PMC <1µm |  | ||||||
|     pmc_2_5: |  | ||||||
|       name: PMSA003i PMC <2.5µm |  | ||||||
|     pmc_5_0: |  | ||||||
|       name: PMSA003i PMC <5µm |  | ||||||
|     pmc_10_0: |  | ||||||
|       name: PMSA003i PMC <10µm |  | ||||||
|     address: 0x12 |  | ||||||
|     standard_units: true |  | ||||||
|   | |||||||
| @@ -1,27 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pmsa003i |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| sensor: | <<: !include common.yaml | ||||||
|   - platform: pmsa003i |  | ||||||
|     pm_1_0: |  | ||||||
|       name: PMSA003i PM1.0 |  | ||||||
|     pm_2_5: |  | ||||||
|       name: PMSA003i PM2.5 |  | ||||||
|     pm_10_0: |  | ||||||
|       name: PMSA003i PM10.0 |  | ||||||
|     pmc_0_3: |  | ||||||
|       name: PMSA003i PMC <0.3µm |  | ||||||
|     pmc_0_5: |  | ||||||
|       name: PMSA003i PMC <0.5µm |  | ||||||
|     pmc_1_0: |  | ||||||
|       name: PMSA003i PMC <1µm |  | ||||||
|     pmc_2_5: |  | ||||||
|       name: PMSA003i PMC <2.5µm |  | ||||||
|     pmc_5_0: |  | ||||||
|       name: PMSA003i PMC <5µm |  | ||||||
|     pmc_10_0: |  | ||||||
|       name: PMSA003i PMC <10µm |  | ||||||
|     address: 0x12 |  | ||||||
|     standard_units: true |  | ||||||
|   | |||||||
| @@ -1,27 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pmsa003i |   scl_pin: GPIO5 | ||||||
|     scl: 5 |   sda_pin: GPIO4 | ||||||
|     sda: 4 |  | ||||||
|  |  | ||||||
| sensor: | <<: !include common.yaml | ||||||
|   - platform: pmsa003i |  | ||||||
|     pm_1_0: |  | ||||||
|       name: PMSA003i PM1.0 |  | ||||||
|     pm_2_5: |  | ||||||
|       name: PMSA003i PM2.5 |  | ||||||
|     pm_10_0: |  | ||||||
|       name: PMSA003i PM10.0 |  | ||||||
|     pmc_0_3: |  | ||||||
|       name: PMSA003i PMC <0.3µm |  | ||||||
|     pmc_0_5: |  | ||||||
|       name: PMSA003i PMC <0.5µm |  | ||||||
|     pmc_1_0: |  | ||||||
|       name: PMSA003i PMC <1µm |  | ||||||
|     pmc_2_5: |  | ||||||
|       name: PMSA003i PMC <2.5µm |  | ||||||
|     pmc_5_0: |  | ||||||
|       name: PMSA003i PMC <5µm |  | ||||||
|     pmc_10_0: |  | ||||||
|       name: PMSA003i PMC <10µm |  | ||||||
|     address: 0x12 |  | ||||||
|     standard_units: true |  | ||||||
|   | |||||||
| @@ -1,27 +1,5 @@ | |||||||
| i2c: | substitutions: | ||||||
|   - id: i2c_pmsa003i |   scl_pin: GPIO16 | ||||||
|     scl: 16 |   sda_pin: GPIO17 | ||||||
|     sda: 17 |  | ||||||
|  |  | ||||||
| sensor: | <<: !include common.yaml | ||||||
|   - platform: pmsa003i |  | ||||||
|     pm_1_0: |  | ||||||
|       name: PMSA003i PM1.0 |  | ||||||
|     pm_2_5: |  | ||||||
|       name: PMSA003i PM2.5 |  | ||||||
|     pm_10_0: |  | ||||||
|       name: PMSA003i PM10.0 |  | ||||||
|     pmc_0_3: |  | ||||||
|       name: PMSA003i PMC <0.3µm |  | ||||||
|     pmc_0_5: |  | ||||||
|       name: PMSA003i PMC <0.5µm |  | ||||||
|     pmc_1_0: |  | ||||||
|       name: PMSA003i PMC <1µm |  | ||||||
|     pmc_2_5: |  | ||||||
|       name: PMSA003i PMC <2.5µm |  | ||||||
|     pmc_5_0: |  | ||||||
|       name: PMSA003i PMC <5µm |  | ||||||
|     pmc_10_0: |  | ||||||
|       name: PMSA003i PMC <10µm |  | ||||||
|     address: 0x12 |  | ||||||
|     standard_units: true |  | ||||||
|   | |||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user