I have 2 Merkury white bulbs and a Sonoff B1 that have all be flashed with tasmota.
I’ve been trying to get transitions to work in scenes but I get instant bright or instant dim.
My code for the 2 scenes:
- name: Livingroom_Normal
entities:
light.living_room_lamp_1:
state: on
transition: 2
brightness_pct: 90
light.living_room_lamp_2:
state: on
transition: 2
brightness_pct: 85
light.living_room_b1:
state: on
transition: 2
brightness_pct: 85
- name: Livingroom_Dim
entities:
light.living_room_lamp_1:
state: on
transition: 2
brightness_pct: 20
light.living_room_lamp_2:
state: on
transition: 2
brightness_pct: 20
light.living_room_b1:
state: on
transition: 2
brightness_pct: 20
My automations are:
#DIM AND BRIGHTED LIVING ROOM LIGHTS AS MEDIA IS PLAYED/STOPPED ON LIVING ROOM TV
- alias: "Media player paused/stopped"
trigger:
- platform: state
entity_id: media_player.living_room_tv
from: 'playing'
to: 'paused'
# to: 'idle'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
service: scene.turn_on
entity_id: scene.Livingroom_Normal
- alias: "Media player playing"
trigger:
- platform: state
entity_id: media_player.living_room_tv
to: 'playing'
from: 'paused'
# from: 'idle'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
service: scene.turn_on
entity_id: scene.Livingroom_Dim
Sorry, I no longer know what to tell you. The documentation’s chart indicates the default schema does not support transitions … but in the very next paragraph it says it does support transitions.
Default schema
The mqtt light platform with default schema lets you control your MQTT enabled lights. It supports setting brightness, color temperature, effects, flashing, on/off, RGB colors, transitions, XY colors and white values.
I searched and found this post which may or may not be useful. Good luck!
I haven’t yet. I stopped trying to get it to work as it was driving me crazy so I moved on to something else.
I’ll circle back eventually but for now I’m just letting it chill.