Assumed_state: true?

I’m trying to set the assumed state of a switch to false so that the switch operator displays as a toggle instead of two buttons.

The switch is a Broadlink RM2 switch entity. So far I have five of them in my set up. All of them are set to assumed_state: false in customize:.

All but one of them show the toggle operator. If I look at the attributes for that entity the assumed_state: is true.

If I set the assumed_state: to false in the ‘states’ screen the operator changes to a toggle. as soon as i restart HA it reverts back to true & the operator changes back to the buttons.

I don’t know where the assumed_state: true is being set.

Any ideas?

In customize_glob.yaml set the following state per switch or global as per my example below depending how you name you switches:

customize_glob:

"switch.light_*":
  icon: mdi:lightbulb
  assumed_state: false
"switch.stp_*":
  icon: mdi:power-socket-eu
  assumed_state: false
1 Like

Thanks!

That worked but I’m not sure why I had to do it globally but individually it wouldn’t work.

I still don’t know where it was setting the assumed_state: to true from.

Assumed state is sat to true by default for that switch.

Yes but when i individually set all five of the switches to false the only one that stayed as button display was that one switch. the rest of them displayed as a toggle.

I don’t know why that one switch acted differently than the others.