Reestructuración Shelly 4
This commit is contained in:
		| @@ -1,15 +1,3 @@ | ||||
| switch: | ||||
|   - platform: rest | ||||
|     name: "Coche Eléctrico" | ||||
|     scan_interval: 30 | ||||
|     resource: http://10.10.1.153/relay/3 | ||||
|     body_on: 'turn=on' | ||||
|     body_off: 'turn=off' | ||||
|     timeout : 60 | ||||
|     is_on_template: '{{ value_json.ison == true}}' | ||||
|     headers: | ||||
|        content-type: application/x-www-form-urlencoded | ||||
| 
 | ||||
| sensor: | ||||
|   - platform: mqtt | ||||
|     name: "Consumo General Coche Eléctrico" | ||||
| @@ -21,4 +9,3 @@ sensor: | ||||
|     state_topic: "shellies/shelly4pro-061E6E/relay/3/energy" | ||||
|     unit_of_measurement: "KWh" | ||||
|     value_template: "{{ value | multiply(0.01) | float | round(2)}}" | ||||
| 
 | ||||
| @@ -1,15 +1,3 @@ | ||||
| switch: | ||||
|   - platform: rest | ||||
|     name: "General Caldera" | ||||
|     scan_interval: 30 | ||||
|     resource: http://10.10.1.153/relay/2 | ||||
|     body_on: 'turn=on' | ||||
|     body_off: 'turn=off' | ||||
|     timeout : 60 | ||||
|     is_on_template: '{{ value_json.ison == true}}' | ||||
|     headers: | ||||
|        content-type: application/x-www-form-urlencoded | ||||
| 
 | ||||
| sensor: | ||||
|   - platform: mqtt | ||||
|     name: "Consumo General Calefacción" | ||||
| @@ -21,4 +9,3 @@ sensor: | ||||
|     state_topic: "shellies/shelly4pro-061E6E/relay/2/energy" | ||||
|     unit_of_measurement: "KWh" | ||||
|     value_template: "{{ value | multiply(0.01) | float | round(2)}}" | ||||
| 
 | ||||
| @@ -1,15 +1,3 @@ | ||||
| switch: | ||||
|   - platform: rest | ||||
|     name: "General Luces" | ||||
|     scan_interval: 30 | ||||
|     resource: http://10.10.1.153/relay/0 | ||||
|     body_on: 'turn=on' | ||||
|     body_off: 'turn=off' | ||||
|     timeout: 60 | ||||
|     is_on_template: '{{ value_json.ison == true}}' | ||||
|     headers: | ||||
|        content-type: application/x-www-form-urlencoded | ||||
| 
 | ||||
| sensor: | ||||
|   - platform: mqtt | ||||
|     name: "Consumo General Luces" | ||||
| @@ -21,4 +9,3 @@ sensor: | ||||
|     state_topic: "shellies/shelly4pro-061E6E/relay/0/energy" | ||||
|     unit_of_measurement: "KWh" | ||||
|     value_template: "{{ value | multiply(0.01) | float | round(2)}}" | ||||
| 
 | ||||
| @@ -1,15 +1,3 @@ | ||||
| switch: | ||||
|   - platform: rest | ||||
|     name: "General Persianas" | ||||
|     scan_interval: 30 | ||||
|     resource: http://10.10.1.153/relay/1 | ||||
|     body_on: 'turn=on' | ||||
|     body_off: 'turn=off' | ||||
|     timeout : 60 | ||||
|     is_on_template: '{{ value_json.ison == true}}' | ||||
|     headers: | ||||
|        content-type: application/x-www-form-urlencoded | ||||
| 
 | ||||
| sensor: | ||||
|   - platform: mqtt | ||||
|     name: "Consumo General Persianas" | ||||
| @@ -21,4 +9,3 @@ sensor: | ||||
|     state_topic: "shellies/shelly4pro-061E6E/relay/1/energy" | ||||
|     unit_of_measurement: "KWh" | ||||
|     value_template: "{{ value | multiply(0.01) | float | round(2)}}" | ||||
| 
 | ||||
							
								
								
									
										11
									
								
								packages/switch/general_caldera.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								packages/switch/general_caldera.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| switch: | ||||
|   - platform: rest | ||||
|     name: "General Caldera" | ||||
|     scan_interval: 30 | ||||
|     resource: http://10.10.1.153/relay/2 | ||||
|     body_on: 'turn=on' | ||||
|     body_off: 'turn=off' | ||||
|     timeout : 60 | ||||
|     is_on_template: '{{ value_json.ison == true}}' | ||||
|     headers: | ||||
|        content-type: application/x-www-form-urlencoded | ||||
							
								
								
									
										11
									
								
								packages/switch/general_coche_electrico.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								packages/switch/general_coche_electrico.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| switch: | ||||
|   - platform: rest | ||||
|     name: "Coche Eléctrico" | ||||
|     scan_interval: 30 | ||||
|     resource: http://10.10.1.153/relay/3 | ||||
|     body_on: 'turn=on' | ||||
|     body_off: 'turn=off' | ||||
|     timeout : 60 | ||||
|     is_on_template: '{{ value_json.ison == true}}' | ||||
|     headers: | ||||
|        content-type: application/x-www-form-urlencoded | ||||
							
								
								
									
										12
									
								
								packages/switch/general_luces.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								packages/switch/general_luces.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| switch: | ||||
|   - platform: rest | ||||
|     name: "General Luces" | ||||
|     scan_interval: 30 | ||||
|     resource: http://10.10.1.153/relay/0 | ||||
|     body_on: 'turn=on' | ||||
|     body_off: 'turn=off' | ||||
|     timeout: 60 | ||||
|     is_on_template: '{{ value_json.ison == true}}' | ||||
|     headers: | ||||
|        content-type: application/x-www-form-urlencoded | ||||
|  | ||||
							
								
								
									
										11
									
								
								packages/switch/general_persianas.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								packages/switch/general_persianas.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| switch: | ||||
|   - platform: rest | ||||
|     name: "General Persianas" | ||||
|     scan_interval: 30 | ||||
|     resource: http://10.10.1.153/relay/1 | ||||
|     body_on: 'turn=on' | ||||
|     body_off: 'turn=off' | ||||
|     timeout : 60 | ||||
|     is_on_template: '{{ value_json.ison == true}}' | ||||
|     headers: | ||||
|        content-type: application/x-www-form-urlencoded | ||||
		Reference in New Issue
	
	Block a user
	 dfcarvajal
					dfcarvajal