From: Giorgio Ravera Date: Wed, 1 Jan 2020 12:48:20 +0000 (+0100) Subject: Added Shelly Door/Window X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=a2da833e93fe32596e153fce994971b856c2e00d;p=homeassistant.git Added Shelly Door/Window --- diff --git a/group/shelly.yaml b/group/shelly.yaml index 8f7ce525..3c16fe77 100644 --- a/group/shelly.yaml +++ b/group/shelly.yaml @@ -19,4 +19,5 @@ shelly: - sensor.shelly10_status - sensor.shellybulb_status - sensor.shellyem_status + - sensor.shellydw_status - sensor.shellyplugs_status diff --git a/script/shelly.yaml b/script/shelly.yaml index eda50d70..b04891b3 100644 --- a/script/shelly.yaml +++ b/script/shelly.yaml @@ -71,6 +71,13 @@ shelly_upgrade: data: topic: 'shellies/shellyem-B9E1A0/command' payload: 'update_fw' + + # Shelly Door/Window + - service: mqtt.publish + data: + data: + topic: 'shellies/shellydw-B88F53/command' + payload: 'update_fw' # Shelly Plug S - service: mqtt.publish diff --git a/sensor/shelly.yaml b/sensor/shelly.yaml index de744517..66742530 100644 --- a/sensor/shelly.yaml +++ b/sensor/shelly.yaml @@ -334,6 +334,34 @@ - update - uptime +###################################################################### +# Sensor: Shelly Door/Window +###################################################################### + +#- platform: rest +# scan_interval: 43200 +# resource: http://shellydw.giorgioravera.it/status +# method: GET +# name: shellyplugs_status +# #value_template: '{{ value_json.has_update }}' +# value_template: >- +# {% if value_json.has_update == True %} +# on +# {% else %} +# off +# {% endif %} +# authentication: basic +# username: !secret shelly_user +# password: !secret shelly_password +# json_attributes: +# # - wifi_sta +# # - mqtt +# # - time +# # - has_update +# - mac +# - update +# - uptime + ###################################################################### # Sensor: Shelly Plug S ###################################################################### diff --git a/shell_scripts/shelly_reboot.sh b/shell_scripts/shelly_reboot.sh index 78ce1aab..f2d911a7 100755 --- a/shell_scripts/shelly_reboot.sh +++ b/shell_scripts/shelly_reboot.sh @@ -16,6 +16,7 @@ SHELLY_ID=( shelly10.giorgioravera.it shellybulb.giorgioravera.it shellyem.giorgioravera.it + shellydw.giorgioravera.it shellyplugs.giorgioravera.it ) diff --git a/shell_scripts/shelly_upgrade.sh b/shell_scripts/shelly_upgrade.sh index f75f6ce9..132b3850 100755 --- a/shell_scripts/shelly_upgrade.sh +++ b/shell_scripts/shelly_upgrade.sh @@ -17,6 +17,7 @@ SHELLY_ID=( shelly1-24D1A8 shellybulb-BC8610 shellyem-B9E1A0 + shellydw-B88F53 shellyplug-s-7A31CB ) diff --git a/shell_scripts/shelly_version.sh b/shell_scripts/shelly_version.sh index 9c734a88..505eb041 100755 --- a/shell_scripts/shelly_version.sh +++ b/shell_scripts/shelly_version.sh @@ -16,6 +16,7 @@ SHELLY_ID=( shelly10.giorgioravera.it shellybulb.giorgioravera.it shellyem.giorgioravera.it + shellydw.giorgioravera.it shellyplugs.giorgioravera.it )