zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Transition while light.turn_on service in HomeAssistant

Open SkipperDo opened this issue 3 years ago • 0 comments

What happened?

No transition by light.turn_on on any IKEA FLOALT Panel but transition works by light.turn_off - weird...

What did you expect to happen?

transition working

How to reproduce it (minimal and precise)

this is my automation for the FLOALT in HomeAssistant

`alias: Licht Gr. Flur description: Tag & Nachtautomatisierung Gr. Flur, Es sei denn Nachtlicht ist aktiv. trigger:

type: motion platform: device device_id: c63a81525de9f75bfb6f3b9b2cb63d1d entity_id: binary_sensor.bewegungsmelder_gr_flur_occupancy domain: binary_sensor type: opened platform: device device_id: dc59b9a39a18d7394c3815b7139935a9 entity_id: binary_sensor.entry_door_contact_2 domain: binary_sensor condition: condition: state entity_id: automation.nachtlicht state: "off" enabled: false action: if: condition: time after: "08:00:00" before: "21:30:00" type: is_illuminance condition: device device_id: c63a81525de9f75bfb6f3b9b2cb63d1d entity_id: sensor.bewegungsmelder_gr_flur_illuminance_lux domain: sensor above: 0 below: 50 enabled: false then: service: light.turn_on data: transition: 5 kelvin: 2700 brightness_pct: 75 target: entity_id: light.floalt_gr_flur delay: hours: 0 minutes: 1 seconds: 30 milliseconds: 0 service: light.turn_off data: transition: 3 target: entity_id: light.floalt_gr_flur else: service: light.turn_on data: transition: 5 kelvin: 2202 brightness_pct: 1 target: entity_id: light.floalt_gr_flur delay: hours: 0 minutes: 1 seconds: 30 milliseconds: 0 service: light.turn_off data: transition: 3 target: entity_id: light.floalt_gr_flur mode: restart`

Zigbee2MQTT version

1.28.2 commit 360a777

Adapter firmware version

0x26780700

Adapter

Conbee 2

Debug log

I just change from DECONZ and HomeAssistant to Zigbee2MQTT and (the same) Homeassistant & Mosquitto... for all i use docker Container(s) on my QNAP NAS

I Just change my automations in HA to match the new entities... All my FLOALT Panel support transition but since the Change to Z2M the Transition don't work... I tried a workaround in Z2M using the Settings (specific) in Z2M Frontend, and set the Transition value to 3. But nothing changes...

The FLOALT Panel directly "jump" to the target brightness without any transition... (in my case 75%)

The Stange thing: while turning off the Light the Transition works as aspected...

The Logs while light.turn_on:

Info 2022-11-27 20:57:25MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur', payload '{"brightness":190,"color_mode":"color_temp","color_temp":370,"linkquality":255,"power_on_behavior":"off","state":"ON","update":{"state":"idle"},"update_available":false}' Info 2022-11-27 20:57:25MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/color_mode', payload 'color_temp' Info 2022-11-27 20:57:25MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/state', payload 'ON' Info 2022-11-27 20:57:25MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/brightness', payload '190' Info 2022-11-27 20:57:25MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/color_temp', payload '370' Info 2022-11-27 20:57:25MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/update-state', payload 'idle' Info 2022-11-27 20:57:25MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/update_available', payload 'false' Info 2022-11-27 20:57:25MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/power_on_behavior', payload 'off' Info 2022-11-27 20:57:25MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/linkquality', payload '255'

Looks like the Transition will not be transmitted... I don't know why... The Same automation by using DECONZ instead of Z2M works as aspected... Maybe Z2M limiting the number of values been transmitted in one payload message?

On the other hand: while light.turn_off the transition value isn't in the payload, too... But the transition works as aspected...

Info 2022-11-27 20:58:54MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur', payload '{"brightness":190,"color_mode":"color_temp","color_temp":370,"linkquality":255,"power_on_behavior":"off","state":"OFF","update":{"state":"idle"},"update_available":false}' Info 2022-11-27 20:58:54MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/color_mode', payload 'color_temp' Info 2022-11-27 20:58:54MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/state', payload 'OFF' Info 2022-11-27 20:58:54MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/brightness', payload '190' Info 2022-11-27 20:58:54MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/color_temp', payload '370' Info 2022-11-27 20:58:54MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/update-state', payload 'idle' Info 2022-11-27 20:58:54MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/update_available', payload 'false' Info 2022-11-27 20:58:54MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/power_on_behavior', payload 'off' Info 2022-11-27 20:58:54MQTT publish: topic 'zigbee2mqtt/FLOALT Gr. Flur/linkquality', payload '255'

strange....

SkipperDo avatar Nov 27 '22 20:11 SkipperDo