######################################################################
- platform: mqtt
+ schema: template
name: Luce Camera
- command_topic: "shellies/shelly1-24D1A8/relay/0/command"
- state_topic: "shellies/shelly1-24D1A8/relay/0"
- payload_on: "on"
- payload_off: "off"
+ state_topic: "shellies/shellydimmer-D46CF2/light/0/status"
+ state_template: >
+ {% if value_json.ison %}
+ on
+ {% else %}
+ off
+ {% endif %}
+ command_topic: "shellies/shellydimmer-D46CF2/light/0/set"
+ command_on_template: >
+ {"turn": "on"
+ {% if brightness is defined %}
+ , "brightness": {{ brightness | float | multiply(0.3922) | round(0) }}
+ {% endif %}
+ }
+ command_off_template: '{ "turn" : "off" }'
+ brightness_template: "{{ value_json.brightness | float | multiply(2.55) | round(0) }}"
retain: false
qos: 0
optimistic: false
topic: 'shellies/shelly1-59E18C/command'
payload: 'update_fw'
- # Shelly 1 Luce Camera
+ # Shelly Dimmer Luce Camera
- service: mqtt.publish
data:
- topic: 'shellies/shelly1-24D1A8/command'
+ topic: 'shellies/shellydimmer-D46CF2/command'
payload: 'update_fw'
# Shelly 1 Luce Balcone
topic: 'shellies/shellyplug-s-7A31CB/command'
payload: 'update_fw'
+# # Shelly 1 TBD
+# - service: mqtt.publish
+# data:
+# topic: 'shellies/shelly1-24D1A8/command'
+# payload: 'update_fw'
+
######################################################################
# Shelly: Reboot
# - shell_command.shelly_reboot
shelly8.giorgioravera.it
shelly9.giorgioravera.it
shelly10.giorgioravera.it
- shelly11.giorgioravera.it
+ shelly11.giorgioravera.it
shellybulb.giorgioravera.it
shellyem.giorgioravera.it
shellydw.giorgioravera.it
shellybulb-BC8610
shellyswitch25-7457D8
shelly1-59E18C
- shelly1-24D1A8
+ shellydimmer-D46CF2
shelly1-C423C8
shellyem-B9E1A0
shellydw-B88F53
shellyplug-s-7A31CB
+ #shelly1-24D1A8
)
echo "Upgrade Shelly Firmware"
shelly8.giorgioravera.it
shelly9.giorgioravera.it
shelly10.giorgioravera.it
- shelly11.giorgioravera.it
+ shelly11.giorgioravera.it
shellybulb.giorgioravera.it
shellyem.giorgioravera.it
- shellydw.giorgioravera.it
+ #shellydw.giorgioravera.it
shellyplugs.giorgioravera.it
)