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:
|
||||
- platform: mqtt
|
||||
name: "Persiana Habitación Estudio"
|
||||
state_topic: "shellies/shellyswitch25-74595A/roller/0"
|
||||
command_topic: "shellies/shellyswitch25-74595A/roller/0/command"
|
||||
position_topic: "shellies/shellyswitch25-74595A/roller/0/pos"
|
||||
set_position_topic: "shellies/shellyswitch25-74595A/roller/0/command/pos"
|
||||
availability_topic: "shellies/shellyswitch25-74595A/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
|
||||
- platform: template
|
||||
covers:
|
||||
persiana_habitacion_estudio:
|
||||
position_template: "{{ states('sensor.persiana_habitacion_estudio_posicion') | float }}"
|
||||
open_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.176
|
||||
action: open
|
||||
close_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.176
|
||||
action: close
|
||||
stop_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.176
|
||||
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:
|
||||
- platform: mqtt
|
||||
name: "Persiana Habitación Mia"
|
||||
state_topic: "shellies/shellyswitch25-74595B/roller/0"
|
||||
command_topic: "shellies/shellyswitch25-74595B/roller/0/command"
|
||||
position_topic: "shellies/shellyswitch25-74595B/roller/0/pos"
|
||||
set_position_topic: "shellies/shellyswitch25-74595B/roller/0/command/pos"
|
||||
availability_topic: "shellies/shellyswitch25-74595B/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
|
||||
- platform: template
|
||||
covers:
|
||||
persiana_habitacion_mia:
|
||||
position_template: "{{ states('sensor.persiana_habitacion_mia_posicion') | float }}"
|
||||
open_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.177
|
||||
action: open
|
||||
close_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.177
|
||||
action: close
|
||||
stop_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.177
|
||||
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:
|
||||
- platform: mqtt
|
||||
name: "Persiana Habitación Noha"
|
||||
state_topic: "shellies/shellyswitch25-5DB8BE/roller/0"
|
||||
command_topic: "shellies/shellyswitch25-5DB8BE/roller/0/command"
|
||||
position_topic: "shellies/shellyswitch25-5DB8BE/roller/0/pos"
|
||||
set_position_topic: "shellies/shellyswitch25-5DB8BE/roller/0/command/pos"
|
||||
availability_topic: "shellies/shellyswitch25-5DB8BE/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
|
||||
- platform: template
|
||||
covers:
|
||||
persiana_habitacion_noha:
|
||||
position_template: "{{ states('sensor.persiana_habitacion_noha_posicion') | float }}"
|
||||
open_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.178
|
||||
action: open
|
||||
close_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.178
|
||||
action: close
|
||||
stop_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.178
|
||||
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:
|
||||
- platform: mqtt
|
||||
name: "Persiana Habitación Principal"
|
||||
state_topic: "shellies/shellyswitch25-744b67/roller/0"
|
||||
command_topic: "shellies/shellyswitch25-744B67/roller/0/command"
|
||||
position_topic: "shellies/shellyswitch25-744B67/roller/0/pos"
|
||||
set_position_topic: "shellies/shellyswitch25-744B67/roller/0/command/pos"
|
||||
availability_topic: "shellies/shellyswitch25-744B67/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
|
||||
- platform: template
|
||||
covers:
|
||||
persiana_habitacion_principal:
|
||||
position_template: "{{ states('sensor.persiana_habitacion_principal_posicion') | float }}"
|
||||
open_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.179
|
||||
action: open
|
||||
close_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.179
|
||||
action: close
|
||||
stop_cover:
|
||||
service: rest_command.shelly_cover_action
|
||||
data:
|
||||
ip: 10.10.1.179
|
||||
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