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,15 +396,18 @@ def add_hello_world(config): | ||||
|  | ||||
| FINAL_VALIDATE_SCHEMA = final_validation | ||||
|  | ||||
| LVGL_SCHEMA = ( | ||||
| LVGL_SCHEMA = cv.All( | ||||
|     container_schema( | ||||
|         obj_spec, | ||||
|         cv.polling_component_schema("1s") | ||||
|     .extend(obj_schema(LvScrActType())) | ||||
|         .extend( | ||||
|             { | ||||
|                 cv.GenerateID(CONF_ID): cv.declare_id(LvglComponent), | ||||
|                 cv.GenerateID(df.CONF_DISPLAYS): display_schema, | ||||
|                 cv.Optional(df.CONF_COLOR_DEPTH, default=16): cv.one_of(16), | ||||
|             cv.Optional(df.CONF_DEFAULT_FONT, default="montserrat_14"): lvalid.lv_font, | ||||
|                 cv.Optional( | ||||
|                     df.CONF_DEFAULT_FONT, default="montserrat_14" | ||||
|                 ): lvalid.lv_font, | ||||
|                 cv.Optional(df.CONF_FULL_REFRESH, default=False): cv.boolean, | ||||
|                 cv.Optional(df.CONF_DRAW_ROUNDING, default=2): cv.positive_int, | ||||
|                 cv.Optional(CONF_BUFFER_SIZE, default="100%"): cv.percentage, | ||||
| @@ -444,16 +447,23 @@ LVGL_SCHEMA = ( | ||||
|                         cv.GenerateID(CONF_TRIGGER_ID): cv.declare_id(PauseTrigger), | ||||
|                     } | ||||
|                 ), | ||||
|             cv.Exclusive(df.CONF_WIDGETS, CONF_PAGES): cv.ensure_list(WIDGET_SCHEMA), | ||||
|                 cv.Exclusive(df.CONF_WIDGETS, CONF_PAGES): cv.ensure_list( | ||||
|                     WIDGET_SCHEMA | ||||
|                 ), | ||||
|                 cv.Exclusive(CONF_PAGES, CONF_PAGES): cv.ensure_list( | ||||
|                     container_schema(page_spec) | ||||
|                 ), | ||||
|                 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.Optional(df.CONF_TRANSPARENCY_KEY, default=0x000400): lvalid.lv_color, | ||||
|                 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(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, | ||||
| @@ -463,8 +473,10 @@ LVGL_SCHEMA = ( | ||||
|                 cv.Optional(df.CONF_RESUME_ON_INPUT, default=True): cv.boolean, | ||||
|             } | ||||
|         ) | ||||
|     .extend(DISP_BG_SCHEMA) | ||||
|     .add_extra(add_hello_world) | ||||
|         .extend(DISP_BG_SCHEMA), | ||||
|     ), | ||||
|     cv.has_at_most_one_key(CONF_PAGES, df.CONF_LAYOUT), | ||||
|     add_hello_world, | ||||
| ) | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| from esphome.const import CONF_ID | ||||
| import esphome.codegen as cg | ||||
| import esphome.config_validation as cv | ||||
| from esphome.const import CONF_ID | ||||
|  | ||||
| CODEOWNERS = ["@esphome/core"] | ||||
|  | ||||
| @@ -11,9 +11,7 @@ CONF_FLASH_WRITE_INTERVAL = "flash_write_interval" | ||||
| CONFIG_SCHEMA = cv.Schema( | ||||
|     { | ||||
|         cv.GenerateID(): cv.declare_id(IntervalSyncer), | ||||
|         cv.Optional( | ||||
|             CONF_FLASH_WRITE_INTERVAL, default="60s" | ||||
|         ): cv.positive_time_period_milliseconds, | ||||
|         cv.Optional(CONF_FLASH_WRITE_INTERVAL, default="60s"): cv.update_interval, | ||||
|     } | ||||
| ).extend(cv.COMPONENT_SCHEMA) | ||||
|  | ||||
|   | ||||
| @@ -8,15 +8,22 @@ namespace preferences { | ||||
|  | ||||
| class IntervalSyncer : public Component { | ||||
|  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 { | ||||
|     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(); } | ||||
|   float get_setup_priority() const override { return setup_priority::BUS; } | ||||
|  | ||||
|  protected: | ||||
|   uint32_t write_interval_; | ||||
|   uint32_t write_interval_{60000}; | ||||
| }; | ||||
|  | ||||
| }  // namespace preferences | ||||
|   | ||||
| @@ -77,6 +77,12 @@ void PrometheusHandler::handleRequest(AsyncWebServerRequest *req) { | ||||
|     this->media_player_row_(stream, obj, area, node, friendly_name); | ||||
| #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); | ||||
| } | ||||
|  | ||||
| @@ -679,6 +685,91 @@ void PrometheusHandler::media_player_row_(AsyncResponseStream *stream, media_pla | ||||
| } | ||||
| #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 esphome | ||||
| #endif | ||||
|   | ||||
| @@ -75,7 +75,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | ||||
| #ifdef USE_BINARY_SENSOR | ||||
|   /// Return the type for prometheus | ||||
|   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, | ||||
|                           std::string &node, std::string &friendly_name); | ||||
| #endif | ||||
| @@ -83,7 +83,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | ||||
| #ifdef USE_FAN | ||||
|   /// Return the type for prometheus | ||||
|   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, | ||||
|                 std::string &friendly_name); | ||||
| #endif | ||||
| @@ -91,7 +91,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | ||||
| #ifdef USE_LIGHT | ||||
|   /// Return the type for prometheus | ||||
|   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, | ||||
|                   std::string &friendly_name); | ||||
| #endif | ||||
| @@ -99,7 +99,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | ||||
| #ifdef USE_COVER | ||||
|   /// Return the type for prometheus | ||||
|   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, | ||||
|                   std::string &friendly_name); | ||||
| #endif | ||||
| @@ -107,7 +107,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | ||||
| #ifdef USE_SWITCH | ||||
|   /// Return the type for prometheus | ||||
|   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, | ||||
|                    std::string &friendly_name); | ||||
| #endif | ||||
| @@ -115,7 +115,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | ||||
| #ifdef USE_LOCK | ||||
|   /// Return the type for prometheus | ||||
|   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, | ||||
|                  std::string &friendly_name); | ||||
| #endif | ||||
| @@ -123,7 +123,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | ||||
| #ifdef USE_TEXT_SENSOR | ||||
|   /// Return the type for prometheus | ||||
|   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, | ||||
|                         std::string &friendly_name); | ||||
| #endif | ||||
| @@ -131,7 +131,7 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | ||||
| #ifdef USE_NUMBER | ||||
|   /// Return the type for prometheus | ||||
|   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, | ||||
|                    std::string &friendly_name); | ||||
| #endif | ||||
| @@ -147,11 +147,20 @@ class PrometheusHandler : public AsyncWebHandler, public Component { | ||||
| #ifdef USE_MEDIA_PLAYER | ||||
|   /// Return the type for prometheus | ||||
|   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, | ||||
|                          std::string &node, std::string &friendly_name); | ||||
| #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_; | ||||
|   bool include_internal_{false}; | ||||
|   std::map<EntityBase *, std::string> relabel_map_id_; | ||||
|   | ||||
| @@ -1,11 +1,12 @@ | ||||
| import esphome.codegen as cg | ||||
| import esphome.config_validation as cv | ||||
| from esphome.components import sensor | ||||
| import esphome.config_validation as cv | ||||
| from esphome.const import ( | ||||
|     CONF_EXTERNAL_TEMPERATURE, | ||||
|     CONF_HUMIDITY, | ||||
|     CONF_TEMPERATURE, | ||||
|     CONF_ID, | ||||
|     CONF_TARGET_TEMPERATURE, | ||||
|     CONF_TEMPERATURE, | ||||
|     DEVICE_CLASS_HUMIDITY, | ||||
|     DEVICE_CLASS_TEMPERATURE, | ||||
|     STATE_CLASS_MEASUREMENT, | ||||
| @@ -14,10 +15,10 @@ from esphome.const import ( | ||||
| ) | ||||
|  | ||||
| from .. import ( | ||||
|     uponor_smatrix_ns, | ||||
|     UponorSmatrixDevice, | ||||
|     UPONOR_SMATRIX_DEVICE_SCHEMA, | ||||
|     UponorSmatrixDevice, | ||||
|     register_uponor_smatrix_device, | ||||
|     uponor_smatrix_ns, | ||||
| ) | ||||
|  | ||||
| DEPENDENCIES = ["uponor_smatrix"] | ||||
| @@ -50,6 +51,12 @@ CONFIG_SCHEMA = cv.COMPONENT_SCHEMA.extend( | ||||
|             device_class=DEVICE_CLASS_HUMIDITY, | ||||
|             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) | ||||
|  | ||||
| @@ -68,3 +75,6 @@ async def to_code(config): | ||||
|     if humidity_config := config.get(CONF_HUMIDITY): | ||||
|         sens = await sensor.new_sensor(humidity_config) | ||||
|         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("  ", "External Temperature", this->external_temperature_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) { | ||||
| @@ -29,6 +30,10 @@ void UponorSmatrixSensor::on_device_data(const UponorSmatrixData *data, size_t d | ||||
|         if (this->humidity_sensor_ != nullptr) | ||||
|           this->humidity_sensor_->publish_state(data[i].value & 0x00FF); | ||||
|         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(external_temperature) | ||||
|   SUB_SENSOR(humidity) | ||||
|   SUB_SENSOR(target_temperature) | ||||
|  | ||||
|  public: | ||||
|   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: | ||||
|   - platform: adc | ||||
|     id: my_sensor | ||||
|     pin: 32 | ||||
|     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 | ||||
| substitutions: | ||||
|   pin: GPIO32 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,26 +1,4 @@ | ||||
| sensor: | ||||
|   - platform: adc | ||||
|     id: my_sensor | ||||
|     pin: 4 | ||||
|     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 | ||||
| substitutions: | ||||
|   pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - platform: adc | ||||
|     id: my_sensor | ||||
|     pin: 32 | ||||
|     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 | ||||
| substitutions: | ||||
|   pin: GPIO32 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,26 +1,4 @@ | ||||
| sensor: | ||||
|   - platform: adc | ||||
|     id: my_sensor | ||||
|     pin: 4 | ||||
|     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 | ||||
| substitutions: | ||||
|   pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - platform: adc | ||||
|     id: my_sensor | ||||
|     pin: 4 | ||||
|     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 | ||||
| substitutions: | ||||
|   pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - platform: adc | ||||
|     id: my_sensor | ||||
| substitutions: | ||||
|   pin: A0 | ||||
|   - 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 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,4 @@ | ||||
| sensor: | ||||
|   - platform: adc | ||||
|     id: my_sensor | ||||
|     pin: 26 | ||||
|   - 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 | ||||
| substitutions: | ||||
|   pin: GPIO26 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.turn_off: light_output_1 | ||||
|       - output.turn_on: light_output_1 | ||||
|       - output.set_level: | ||||
|           id: light_output_1 | ||||
|           level: 50% | ||||
| substitutions: | ||||
|   output_platform: ledc | ||||
|   pin: GPIO12 | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| 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% | ||||
| substitutions: | ||||
|   output_platform: ledc | ||||
|   pin: GPIO1 | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 1 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| 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% | ||||
| substitutions: | ||||
|   output_platform: ledc | ||||
|   pin: GPIO1 | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 1 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| 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% | ||||
| substitutions: | ||||
|   output_platform: ledc | ||||
|   pin: GPIO12 | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| 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% | ||||
| substitutions: | ||||
|   output_platform: esp8266_pwm | ||||
|   pin: GPIO12 | ||||
|  | ||||
| output: | ||||
|   - platform: esp8266_pwm | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| 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% | ||||
| substitutions: | ||||
|   output_platform: rp2040_pwm | ||||
|   pin: GPIO12 | ||||
|  | ||||
| output: | ||||
|   - platform: rp2040_pwm | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - platform: fastled_clockless | ||||
|     id: part_leds | ||||
|     chipset: WS2812B | ||||
|     pin: 2 | ||||
|     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 | ||||
| substitutions: | ||||
|   light_platform: esp32_rmt_led_strip | ||||
|   pin: GPIO2 | ||||
|  | ||||
| <<: !include common-ard.yaml | ||||
|   | ||||
| @@ -1,22 +1,5 @@ | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: part_leds | ||||
|     default_transition_length: 500ms | ||||
|     chipset: ws2812 | ||||
|     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 | ||||
| substitutions: | ||||
|   light_platform: esp32_rmt_led_strip | ||||
|   pin: GPIO2 | ||||
|  | ||||
| <<: !include common-ard.yaml | ||||
|   | ||||
| @@ -1,21 +1,5 @@ | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: part_leds | ||||
|     default_transition_length: 500ms | ||||
|     chipset: ws2812 | ||||
|     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 | ||||
| substitutions: | ||||
|   light_platform: esp32_rmt_led_strip | ||||
|   pin: GPIO2 | ||||
|  | ||||
| <<: !include common-idf.yaml | ||||
|   | ||||
| @@ -1,21 +1,5 @@ | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: part_leds | ||||
|     default_transition_length: 500ms | ||||
|     chipset: ws2812 | ||||
|     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 | ||||
| substitutions: | ||||
|   light_platform: esp32_rmt_led_strip | ||||
|   pin: GPIO12 | ||||
|  | ||||
| <<: !include common-idf.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_pca6416a | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| pca6416a: | ||||
|   - id: pca6416a_hub | ||||
|     address: 0x21 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     name: PCA6416A Binary Sensor | ||||
|     pin: | ||||
|       pca6416a: pca6416a_hub | ||||
|       number: 15 | ||||
|       mode: INPUT | ||||
|       inverted: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca6416a | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| pca6416a: | ||||
|   - id: pca6416a_hub | ||||
|     address: 0x21 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     name: PCA6416A Binary Sensor | ||||
|     pin: | ||||
|       pca6416a: pca6416a_hub | ||||
|       number: 15 | ||||
|       mode: INPUT | ||||
|       inverted: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca6416a | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| pca6416a: | ||||
|   - id: pca6416a_hub | ||||
|     address: 0x21 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     name: PCA6416A Binary Sensor | ||||
|     pin: | ||||
|       pca6416a: pca6416a_hub | ||||
|       number: 15 | ||||
|       mode: INPUT | ||||
|       inverted: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca6416a | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| pca6416a: | ||||
|   - id: pca6416a_hub | ||||
|     address: 0x21 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     name: PCA6416A Binary Sensor | ||||
|     pin: | ||||
|       pca6416a: pca6416a_hub | ||||
|       number: 15 | ||||
|       mode: INPUT | ||||
|       inverted: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca6416a | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| pca6416a: | ||||
|   - id: pca6416a_hub | ||||
|     address: 0x21 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     name: PCA6416A Binary Sensor | ||||
|     pin: | ||||
|       pca6416a: pca6416a_hub | ||||
|       number: 15 | ||||
|       mode: INPUT | ||||
|       inverted: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca6416a | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| pca6416a: | ||||
|   - id: pca6416a_hub | ||||
|     address: 0x21 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     name: PCA6416A Binary Sensor | ||||
|     pin: | ||||
|       pca6416a: pca6416a_hub | ||||
|       number: 15 | ||||
|       mode: INPUT | ||||
|       inverted: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_pca9554 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,26 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca9554 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,26 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca9554 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,26 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca9554 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,26 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca9554 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,26 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca9554 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_pca9685 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,34 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca9685 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,34 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca9685 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,34 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca9685 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,34 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca9685 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,26 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pca9554 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: spi_pcd8544 | ||||
|     clk_pin: 16 | ||||
|     mosi_pin: 17 | ||||
|     miso_pin: 15 | ||||
| substitutions: | ||||
|   clk_pin: GPIO16 | ||||
|   mosi_pin: GPIO17 | ||||
|   miso_pin: GPIO18 | ||||
|   cs_pin: GPIO12 | ||||
|   dc_pin: GPIO13 | ||||
|   reset_pin: GPIO14 | ||||
|  | ||||
| display: | ||||
|   - platform: pcd8544 | ||||
|     cs_pin: 12 | ||||
|     dc_pin: 13 | ||||
|     reset_pin: 14 | ||||
|     contrast: 60 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,9 @@ | ||||
| spi: | ||||
|   - id: spi_pcd8544 | ||||
|     clk_pin: 6 | ||||
|     mosi_pin: 7 | ||||
|     miso_pin: 5 | ||||
| substitutions: | ||||
|   clk_pin: GPIO6 | ||||
|   mosi_pin: GPIO7 | ||||
|   miso_pin: GPIO5 | ||||
|   cs_pin: GPIO8 | ||||
|   dc_pin: GPIO9 | ||||
|   reset_pin: GPIO10 | ||||
|  | ||||
| display: | ||||
|   - platform: pcd8544 | ||||
|     cs_pin: 2 | ||||
|     dc_pin: 3 | ||||
|     reset_pin: 1 | ||||
|     contrast: 60 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,9 @@ | ||||
| spi: | ||||
|   - id: spi_pcd8544 | ||||
|     clk_pin: 6 | ||||
|     mosi_pin: 7 | ||||
|     miso_pin: 5 | ||||
| substitutions: | ||||
|   clk_pin: GPIO6 | ||||
|   mosi_pin: GPIO7 | ||||
|   miso_pin: GPIO5 | ||||
|   cs_pin: GPIO8 | ||||
|   dc_pin: GPIO9 | ||||
|   reset_pin: GPIO10 | ||||
|  | ||||
| display: | ||||
|   - platform: pcd8544 | ||||
|     cs_pin: 2 | ||||
|     dc_pin: 3 | ||||
|     reset_pin: 1 | ||||
|     contrast: 60 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,9 @@ | ||||
| spi: | ||||
|   - id: spi_pcd8544 | ||||
|     clk_pin: 16 | ||||
|     mosi_pin: 17 | ||||
|     miso_pin: 15 | ||||
| substitutions: | ||||
|   clk_pin: GPIO16 | ||||
|   mosi_pin: GPIO17 | ||||
|   miso_pin: GPIO18 | ||||
|   cs_pin: GPIO12 | ||||
|   dc_pin: GPIO13 | ||||
|   reset_pin: GPIO14 | ||||
|  | ||||
| display: | ||||
|   - platform: pcd8544 | ||||
|     cs_pin: 12 | ||||
|     dc_pin: 13 | ||||
|     reset_pin: 14 | ||||
|     contrast: 60 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,9 @@ | ||||
| spi: | ||||
|   - id: spi_pcd8544 | ||||
|     clk_pin: 14 | ||||
|     mosi_pin: 13 | ||||
|     miso_pin: 12 | ||||
| substitutions: | ||||
|   clk_pin: GPIO14 | ||||
|   mosi_pin: GPIO13 | ||||
|   miso_pin: GPIO12 | ||||
|   cs_pin: GPIO5 | ||||
|   dc_pin: GPIO15 | ||||
|   reset_pin: GPIO16 | ||||
|  | ||||
| display: | ||||
|   - platform: pcd8544 | ||||
|     cs_pin: 15 | ||||
|     dc_pin: 16 | ||||
|     reset_pin: 5 | ||||
|     contrast: 60 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,9 @@ | ||||
| spi: | ||||
|   - id: spi_pcd8544 | ||||
|     clk_pin: 2 | ||||
|     mosi_pin: 3 | ||||
|     miso_pin: 4 | ||||
| substitutions: | ||||
|   clk_pin: GPIO2 | ||||
|   mosi_pin: GPIO3 | ||||
|   miso_pin: GPIO4 | ||||
|   cs_pin: GPIO5 | ||||
|   dc_pin: GPIO15 | ||||
|   reset_pin: GPIO16 | ||||
|  | ||||
| display: | ||||
|   - platform: pcd8544 | ||||
|     cs_pin: 6 | ||||
|     dc_pin: 5 | ||||
|     reset_pin: 7 | ||||
|     contrast: 60 | ||||
|     lambda: |- | ||||
|       it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   on_boot: | ||||
|     - pcf85063.read_time | ||||
|     - pcf85063.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf85063 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf85063 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     - pcf85063.read_time | ||||
|     - pcf85063.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf85063 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf85063 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     - pcf85063.read_time | ||||
|     - pcf85063.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf85063 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf85063 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     - pcf85063.read_time | ||||
|     - pcf85063.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf85063 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf85063 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     - pcf85063.read_time | ||||
|     - pcf85063.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf85063 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf85063 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     - pcf85063.read_time | ||||
|     - pcf85063.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf85063 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf85063 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   on_boot: | ||||
|     - pcf8563.read_time | ||||
|     - pcf8563.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf8563 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     - pcf8563.read_time | ||||
|     - pcf8563.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf8563 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     - pcf8563.read_time | ||||
|     - pcf8563.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf8563 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     - pcf8563.read_time | ||||
|     - pcf8563.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf8563 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     - pcf8563.read_time | ||||
|     - pcf8563.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf8563 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     - pcf8563.read_time | ||||
|     - pcf8563.write_time | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| time: | ||||
|   - platform: pcf8563 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,28 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,28 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,28 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,28 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,28 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pcf8563 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.pipsolar.set_level: | ||||
|           id: inverter0_battery_recharge_voltage_out | ||||
|           value: 48.0 | ||||
| substitutions: | ||||
|   tx_pin: GPIO17 | ||||
|   rx_pin: GPIO16 | ||||
|  | ||||
| uart: | ||||
|   - 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,249 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.pipsolar.set_level: | ||||
|           id: inverter0_battery_recharge_voltage_out | ||||
|           value: 48.0 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| uart: | ||||
|   - 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,249 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.pipsolar.set_level: | ||||
|           id: inverter0_battery_recharge_voltage_out | ||||
|           value: 48.0 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| uart: | ||||
|   - 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,249 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.pipsolar.set_level: | ||||
|           id: inverter0_battery_recharge_voltage_out | ||||
|           value: 48.0 | ||||
| substitutions: | ||||
|   tx_pin: GPIO17 | ||||
|   rx_pin: GPIO16 | ||||
|  | ||||
| uart: | ||||
|   - 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,249 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.pipsolar.set_level: | ||||
|           id: inverter0_battery_recharge_voltage_out | ||||
|           value: 48.0 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| uart: | ||||
|   - 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,249 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.pipsolar.set_level: | ||||
|           id: inverter0_battery_recharge_voltage_out | ||||
|           value: 48.0 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| uart: | ||||
|   - 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: uart_pm1006 | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO17 | ||||
|   rx_pin: GPIO16 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pm1006 | ||||
|     pm_2_5: | ||||
|       name: Particulate Matter 2.5µm Concentration | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_pm1006 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pm1006 | ||||
|     pm_2_5: | ||||
|       name: Particulate Matter 2.5µm Concentration | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_pm1006 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pm1006 | ||||
|     pm_2_5: | ||||
|       name: Particulate Matter 2.5µm Concentration | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_pm1006 | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO17 | ||||
|   rx_pin: GPIO16 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pm1006 | ||||
|     pm_2_5: | ||||
|       name: Particulate Matter 2.5µm Concentration | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_pm1006 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pm1006 | ||||
|     pm_2_5: | ||||
|       name: Particulate Matter 2.5µm Concentration | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_pm1006 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pm1006 | ||||
|     pm_2_5: | ||||
|       name: Particulate Matter 2.5µm Concentration | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_pmsa003i | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,27 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pmsa003i | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,27 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pmsa003i | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,27 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_pmsa003i | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user