Quitar MQTT de las persianas
This commit is contained in:
@@ -1,20 +1,37 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rest
|
||||||
|
name: "Persiana Habitación Estudio Posición"
|
||||||
|
scan_interval: 5
|
||||||
|
resource: http://10.10.1.176/roller/0
|
||||||
|
value_template: '{{ value_json.current_pos }}'
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
headers:
|
||||||
|
content-type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
- platform: mqtt
|
- platform: template
|
||||||
name: "Persiana Habitación Estudio"
|
covers:
|
||||||
state_topic: "shellies/shellyswitch25-74595A/roller/0"
|
persiana_habitacion_estudio:
|
||||||
command_topic: "shellies/shellyswitch25-74595A/roller/0/command"
|
position_template: "{{ states('sensor.persiana_habitacion_estudio_posicion') | float }}"
|
||||||
position_topic: "shellies/shellyswitch25-74595A/roller/0/pos"
|
open_cover:
|
||||||
set_position_topic: "shellies/shellyswitch25-74595A/roller/0/command/pos"
|
service: rest_command.shelly_cover_action
|
||||||
availability_topic: "shellies/shellyswitch25-74595A/online"
|
data:
|
||||||
state_open: "open"
|
ip: 10.10.1.176
|
||||||
state_closed: "close"
|
action: open
|
||||||
payload_available: "true"
|
close_cover:
|
||||||
payload_not_available: "false"
|
service: rest_command.shelly_cover_action
|
||||||
retain: false
|
data:
|
||||||
optimistic: false
|
ip: 10.10.1.176
|
||||||
payload_open: "open"
|
action: close
|
||||||
payload_close: "close"
|
stop_cover:
|
||||||
payload_stop: "stop"
|
service: rest_command.shelly_cover_action
|
||||||
position_open: 100
|
data:
|
||||||
position_closed: 0
|
ip: 10.10.1.176
|
||||||
qos: 0
|
action: stop
|
||||||
|
set_cover_position:
|
||||||
|
service: rest_command.shelly_cover_set_position
|
||||||
|
data_template:
|
||||||
|
position: "{{position}}"
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.176
|
||||||
|
position: position
|
||||||
|
|||||||
@@ -1,20 +1,37 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rest
|
||||||
|
name: "Persiana Habitación Mia Posición"
|
||||||
|
scan_interval: 5
|
||||||
|
resource: http://10.10.1.177/roller/0
|
||||||
|
value_template: '{{ value_json.current_pos }}'
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
headers:
|
||||||
|
content-type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
- platform: mqtt
|
- platform: template
|
||||||
name: "Persiana Habitación Mia"
|
covers:
|
||||||
state_topic: "shellies/shellyswitch25-74595B/roller/0"
|
persiana_habitacion_mia:
|
||||||
command_topic: "shellies/shellyswitch25-74595B/roller/0/command"
|
position_template: "{{ states('sensor.persiana_habitacion_mia_posicion') | float }}"
|
||||||
position_topic: "shellies/shellyswitch25-74595B/roller/0/pos"
|
open_cover:
|
||||||
set_position_topic: "shellies/shellyswitch25-74595B/roller/0/command/pos"
|
service: rest_command.shelly_cover_action
|
||||||
availability_topic: "shellies/shellyswitch25-74595B/online"
|
data:
|
||||||
state_open: "open"
|
ip: 10.10.1.177
|
||||||
state_closed: "close"
|
action: open
|
||||||
payload_available: "true"
|
close_cover:
|
||||||
payload_not_available: "false"
|
service: rest_command.shelly_cover_action
|
||||||
retain: false
|
data:
|
||||||
optimistic: false
|
ip: 10.10.1.177
|
||||||
payload_open: "open"
|
action: close
|
||||||
payload_close: "close"
|
stop_cover:
|
||||||
payload_stop: "stop"
|
service: rest_command.shelly_cover_action
|
||||||
position_open: 100
|
data:
|
||||||
position_closed: 0
|
ip: 10.10.1.177
|
||||||
qos: 0
|
action: stop
|
||||||
|
set_cover_position:
|
||||||
|
service: rest_command.shelly_cover_set_position
|
||||||
|
data_template:
|
||||||
|
position: "{{position}}"
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.177
|
||||||
|
position: position
|
||||||
|
|||||||
@@ -1,20 +1,37 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rest
|
||||||
|
name: "Persiana Habitación Noha Posición"
|
||||||
|
scan_interval: 5
|
||||||
|
resource: http://10.10.1.178/roller/0
|
||||||
|
value_template: '{{ value_json.current_pos }}'
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
headers:
|
||||||
|
content-type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
- platform: mqtt
|
- platform: template
|
||||||
name: "Persiana Habitación Noha"
|
covers:
|
||||||
state_topic: "shellies/shellyswitch25-5DB8BE/roller/0"
|
persiana_habitacion_noha:
|
||||||
command_topic: "shellies/shellyswitch25-5DB8BE/roller/0/command"
|
position_template: "{{ states('sensor.persiana_habitacion_noha_posicion') | float }}"
|
||||||
position_topic: "shellies/shellyswitch25-5DB8BE/roller/0/pos"
|
open_cover:
|
||||||
set_position_topic: "shellies/shellyswitch25-5DB8BE/roller/0/command/pos"
|
service: rest_command.shelly_cover_action
|
||||||
availability_topic: "shellies/shellyswitch25-5DB8BE/online"
|
data:
|
||||||
state_open: "open"
|
ip: 10.10.1.178
|
||||||
state_closed: "close"
|
action: open
|
||||||
payload_available: "true"
|
close_cover:
|
||||||
payload_not_available: "false"
|
service: rest_command.shelly_cover_action
|
||||||
retain: false
|
data:
|
||||||
optimistic: false
|
ip: 10.10.1.178
|
||||||
payload_open: "open"
|
action: close
|
||||||
payload_close: "close"
|
stop_cover:
|
||||||
payload_stop: "stop"
|
service: rest_command.shelly_cover_action
|
||||||
position_open: 100
|
data:
|
||||||
position_closed: 0
|
ip: 10.10.1.178
|
||||||
qos: 0
|
action: stop
|
||||||
|
set_cover_position:
|
||||||
|
service: rest_command.shelly_cover_set_position
|
||||||
|
data_template:
|
||||||
|
position: "{{position}}"
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.178
|
||||||
|
position: position
|
||||||
|
|||||||
@@ -1,20 +1,37 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rest
|
||||||
|
name: "Persiana Habitación Principal Posición"
|
||||||
|
scan_interval: 5
|
||||||
|
resource: http://10.10.1.179/roller/0
|
||||||
|
value_template: '{{ value_json.current_pos }}'
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
headers:
|
||||||
|
content-type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
- platform: mqtt
|
- platform: template
|
||||||
name: "Persiana Habitación Principal"
|
covers:
|
||||||
state_topic: "shellies/shellyswitch25-744b67/roller/0"
|
persiana_habitacion_principal:
|
||||||
command_topic: "shellies/shellyswitch25-744B67/roller/0/command"
|
position_template: "{{ states('sensor.persiana_habitacion_principal_posicion') | float }}"
|
||||||
position_topic: "shellies/shellyswitch25-744B67/roller/0/pos"
|
open_cover:
|
||||||
set_position_topic: "shellies/shellyswitch25-744B67/roller/0/command/pos"
|
service: rest_command.shelly_cover_action
|
||||||
availability_topic: "shellies/shellyswitch25-744B67/online"
|
data:
|
||||||
state_open: "open"
|
ip: 10.10.1.179
|
||||||
state_closed: "close"
|
action: open
|
||||||
payload_available: "true"
|
close_cover:
|
||||||
payload_not_available: "false"
|
service: rest_command.shelly_cover_action
|
||||||
retain: false
|
data:
|
||||||
optimistic: false
|
ip: 10.10.1.179
|
||||||
payload_open: "open"
|
action: close
|
||||||
payload_close: "close"
|
stop_cover:
|
||||||
payload_stop: "stop"
|
service: rest_command.shelly_cover_action
|
||||||
position_open: 100
|
data:
|
||||||
position_closed: 0
|
ip: 10.10.1.179
|
||||||
qos: 0
|
action: stop
|
||||||
|
set_cover_position:
|
||||||
|
service: rest_command.shelly_cover_set_position
|
||||||
|
data_template:
|
||||||
|
position: "{{position}}"
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.179
|
||||||
|
position: position
|
||||||
|
|||||||
37
packages/cover/persiana_salon_fase_dos.yaml
Normal file
37
packages/cover/persiana_salon_fase_dos.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rest
|
||||||
|
name: "Persiana Salón Fase Dos Posición"
|
||||||
|
scan_interval: 5
|
||||||
|
resource: http://10.10.1.175/roller/0
|
||||||
|
value_template: '{{ value_json.current_pos }}'
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
headers:
|
||||||
|
content-type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
|
cover:
|
||||||
|
- platform: template
|
||||||
|
covers:
|
||||||
|
persiana_salon_fase_dos:
|
||||||
|
position_template: "{{ states('sensor.persiana_salon_fase_dos_posicion') | float }}"
|
||||||
|
open_cover:
|
||||||
|
service: rest_command.shelly_cover_action
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.175
|
||||||
|
action: open
|
||||||
|
close_cover:
|
||||||
|
service: rest_command.shelly_cover_action
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.175
|
||||||
|
action: close
|
||||||
|
stop_cover:
|
||||||
|
service: rest_command.shelly_cover_action
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.175
|
||||||
|
action: stop
|
||||||
|
set_cover_position:
|
||||||
|
service: rest_command.shelly_cover_set_position
|
||||||
|
data_template:
|
||||||
|
position: "{{position}}"
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.175
|
||||||
|
position: position
|
||||||
37
packages/cover/persiana_salon_piscina.yaml
Normal file
37
packages/cover/persiana_salon_piscina.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: rest
|
||||||
|
name: "Persiana Salón Piscina Posición"
|
||||||
|
scan_interval: 5
|
||||||
|
resource: http://10.10.1.174/roller/0
|
||||||
|
value_template: '{{ value_json.current_pos }}'
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
headers:
|
||||||
|
content-type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
|
cover:
|
||||||
|
- platform: template
|
||||||
|
covers:
|
||||||
|
persiana_salon_piscina:
|
||||||
|
position_template: "{{ states('sensor.persiana_salon_piscina_posicion') | float }}"
|
||||||
|
open_cover:
|
||||||
|
service: rest_command.shelly_cover_action
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.174
|
||||||
|
action: open
|
||||||
|
close_cover:
|
||||||
|
service: rest_command.shelly_cover_action
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.174
|
||||||
|
action: close
|
||||||
|
stop_cover:
|
||||||
|
service: rest_command.shelly_cover_action
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.174
|
||||||
|
action: stop
|
||||||
|
set_cover_position:
|
||||||
|
service: rest_command.shelly_cover_set_position
|
||||||
|
data_template:
|
||||||
|
position: "{{position}}"
|
||||||
|
data:
|
||||||
|
ip: 10.10.1.174
|
||||||
|
position: position
|
||||||
17
packages/cover/rest_command_covers.yaml
Normal file
17
packages/cover/rest_command_covers.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
rest_command:
|
||||||
|
shelly_cover_action:
|
||||||
|
url: http://{{ip}}/roller/0
|
||||||
|
method: POST
|
||||||
|
headers:
|
||||||
|
accept: 'application/json, text/html'
|
||||||
|
payload: 'go={{action}}'
|
||||||
|
content_type: 'application/x-www-form-urlencoded'
|
||||||
|
verify_ssl: true
|
||||||
|
shelly_cover_set_position:
|
||||||
|
url: http://{{ip}}/roller/0
|
||||||
|
method: POST
|
||||||
|
headers:
|
||||||
|
accept: 'application/json, text/html'
|
||||||
|
payload: 'go=to_pos&roller_pos={{position}}'
|
||||||
|
content_type: 'application/x-www-form-urlencoded'
|
||||||
|
verify_ssl: true
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
cover:
|
|
||||||
- platform: mqtt
|
|
||||||
name: "Persiana Salón Fase Dos"
|
|
||||||
state_topic: "shellies/shellyswitch25-745590/roller/0"
|
|
||||||
command_topic: "shellies/shellyswitch25-745590/roller/0/command"
|
|
||||||
position_topic: "shellies/shellyswitch25-745590/roller/0/pos"
|
|
||||||
set_position_topic: "shellies/shellyswitch25-745590/roller/0/command/pos"
|
|
||||||
availability_topic: "shellies/shellyswitch25-745590/online"
|
|
||||||
state_open: "open"
|
|
||||||
state_closed: "close"
|
|
||||||
payload_available: "true"
|
|
||||||
payload_not_available: "false"
|
|
||||||
retain: false
|
|
||||||
optimistic: false
|
|
||||||
payload_open: "open"
|
|
||||||
payload_close: "close"
|
|
||||||
payload_stop: "stop"
|
|
||||||
position_open: 100
|
|
||||||
position_closed: 0
|
|
||||||
qos: 0
|
|
||||||
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
cover:
|
|
||||||
- platform: mqtt
|
|
||||||
name: "Persiana Salón Piscina"
|
|
||||||
state_topic: "shellies/shellyswitch25-74552E/roller/0"
|
|
||||||
command_topic: "shellies/shellyswitch25-74552E/roller/0/command"
|
|
||||||
position_topic: "shellies/shellyswitch25-74552E/roller/0/pos"
|
|
||||||
set_position_topic: "shellies/shellyswitch25-74552E/roller/0/command/pos"
|
|
||||||
availability_topic: "shellies/shellyswitch25-74552E/online"
|
|
||||||
state_open: "open"
|
|
||||||
state_closed: "close"
|
|
||||||
payload_available: "true"
|
|
||||||
payload_not_available: "false"
|
|
||||||
retain: false
|
|
||||||
optimistic: false
|
|
||||||
payload_open: "open"
|
|
||||||
payload_close: "close"
|
|
||||||
payload_stop: "stop"
|
|
||||||
position_open: 100
|
|
||||||
position_closed: 0
|
|
||||||
qos: 0
|
|
||||||
Reference in New Issue
Block a user