This is a blueprint to refresh a Zwave device after it has been drawing electric power (Watts). I use this automation to workaround a issue with the Zwave Fibaro Roller Shutter 3 Zwave device that does not update it’s position after it was used or when it was used with the physical connected toggles. This automation calls the service zwave.refresh_entity and will there work only on Zwave devices. The concept might be reusable for other integrations.
Configuration
- You will need provide a sensor measuring the power draw of the target Zwave device.
- You can specify the default power threshold for the automation to trigger. The automation is triggered when the device used more power than the threshold after it is was turned off using less power than the threshold after 2 seconds.
When the device is not used is should draw less power than the power threshold so that the automation kicks in when that action of the device has finished. It should be set above the standby power of the device and below the power when is actively used. For reliability set the value with headroom. For example in the range of 5 Watts more than the constantly used power and 5 Watts less than the power that indicates your device activity. The default value is set to 5 Watts. - You will need to specify the target Zwave device that is refreshed with the zwave.refresh_entity service call
blueprint:
name: Refresh Zwave device status after consuming power (e.g. Workaround FIBARO Roller Shutter 3 position update issue)
description: This is a blueprint to refresh a Zwave device after it has been drawing electric power (Watts). I use this automation to workaround a issue with the Zwave Fibaro Roller Shutter 3 Zwave device that does not update it's position after it was used or when it was used with the physical connected toggles. This automation calls the service zwave.refresh_entity and will there work only on Zwave devices. The concept might be reusable for other integrations.
domain: automation
input:
power_sensor:
name: Electric Power Sensor
description: This sensor used to identify when the Zwave target device has been used.
selector:
entity:
domain: sensor
power_threshold:
name: Power Threshold in Watts
description: When the device is not used is should draw less power than the power threshold so that the automation kicks in when that action of the device has finished. It should be set above the standby power of the device and below the power when is actively used. For reliability set the value with headroom. For example in the range of 5 Watts more than the constantly used power and 5 Watts less than the power that indicates your device activity. The default value is set to 5 Watts.
default: '5'
zwave_target_device:
name: Target Zwave Device
description: This Zwave device is beeing refreshed after it has been powered off.
selector:
entity:
trigger:
- below: !input power_threshold
entity_id: !input power_sensor
for: '00:00:02'
platform: numeric_state
condition: []
action:
- data:
entity_id: !input zwave_target_device
service: zwave_js.refresh_value
mode: single