mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Add homeassistant.service test
This commit is contained in:
		| @@ -202,6 +202,15 @@ text_sensor: | |||||||
|       - lambda: !lambda |- |       - lambda: !lambda |- | ||||||
|           ESP_LOGD("main", "The state is %s=%s", x.c_str(), id(version_sensor).state.c_str()); |           ESP_LOGD("main", "The state is %s=%s", x.c_str(), id(version_sensor).state.c_str()); | ||||||
|       - script.execute: my_script |       - script.execute: my_script | ||||||
|  |       - homeassistant.service: | ||||||
|  |           service: notify.html5 | ||||||
|  |           data: | ||||||
|  |             title: New Humidity | ||||||
|  |           data_template: | ||||||
|  |             message: The humidity is {{ my_variable }}%. | ||||||
|  |           variables: | ||||||
|  |             my_variable: |- | ||||||
|  |               return id(version_sensor).state; | ||||||
|   - platform: mqtt_subscribe |   - platform: mqtt_subscribe | ||||||
|     name: "MQTT Subscribe Text" |     name: "MQTT Subscribe Text" | ||||||
|     topic: "the/topic" |     topic: "the/topic" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user