Hey guys, I have got broadlink to controle the ligths, so I can’t know actual state of the switch (is it on or off). If I use HA to turn on, then I turn it off manually, HA does not know about that and think that it’s on. So I need some icons, which do not show the state (the should be just grey, nor grey and blue). Is it possible here?
you need to find the
state_topic: of the switch
- platform: mqtt
name: "Small Fan"
state_topic: "stat/Wemos_fan/POWER1"
command_topic: "cmnd/Wemos_fan/POWER1"
payload_on: "ON"
payload_off: "OFF"
optimistic: false
qos: 0
retain: true
base on the above
if I dont have the state_topic: HA will not know the Status of the Switch
in saying that my switch send a state_topic: when something changes at that end
hope this help.
@Argo is using IR (Broadlink) so there is no way to get feedback from the end device
@Argo perhaps you might want to look at using Custom UI Tiles
So where can find it? I tried to find it in Confg (every file) but there is no things like that. Addons, backup, share are empty
show us what you have done use right formating
Here is all code for switches
switch:
platform: broadlink
host: 192.168.1.75
mac: '34:EA:34:42:EF:7E'
timeout: 15
switches:
a11_key:
command_on: 'sgD8AAgYCRgZCBgIGQgYCAkYCBkYCBkIGAgZCBkHGQgJGAgYCRgIGQgYCRgIGAkYGQcZCAn7CRgIGBkIGQcZCBkICBgJGBkIGAgZCBkIGAgZCAgYCRgIGQgYCRgIGAkYCBgZCBkICPwIGAkYGQgYCBkIGQgIGAkYGAgZCBkIGAgZCBkICBgJGAgYCRgIGQgYCRgIGBkIGQgI/AgYCRgZCBkHGQgZCAgYCRgZBxkIGQgZBxkIGQgIGAkYCBkIGAkYCBgJGAgYGQgZCAj8CRgIGBkIGQcZCBkICBgJGBkIGAgZCBkIGQgYCAkYCBgJGAgZCBgJGAgYCRgZBxkICQAF3AAAAAAAAAAAAAAAAA=='
command_off: 'sgD8AAgYCRgZCBgIGQgYCAkYCBkYCBkIGAgZCBkHGQgJGAgYCRgIGQgYCRgIGAkYGQcZCAn7CRgIGBkIGQcZCBkICBgJGBkIGAgZCBkIGAgZCAgYCRgIGQgYCRgIGAkYCBgZCBkICPwIGAkYGQgYCBkIGQgIGAkYGAgZCBkIGAgZCBkICBgJGAgYCRgIGQgYCRgIGBkIGQgI/AgYCRgZCBkHGQgZCAgYCRgZBxkIGQgZBxkIGQgIGAkYCBkIGAkYCBgJGAgYGQgZCAj8CRgIGBkIGQcZCBkICBgJGBkIGAgZCBkIGQgYCAkYCBgJGAgZCBgJGAgYCRgZBxkICQAF3AAAAAAAAAAAAAAAAA=='
friendly_name: 'Grand room light'
a12_key:
command_on: 'sgCiACEKIAoLIAsgCx8gCwsfIAsgCgsgIAoLIAsfIQoLICAKIQoLHwsgCyALHwsgCx8gCwoAAUQgCyAKCyAKIAsgIAoLICAKIAsLHyEKCx8LICAKDB8gCiALCyAKIAsgCiALHwwfIAsLAAFDIAsfCwsgCiALICAKCyAgCiALCx8gCwsfCyAgCgsgIAogCwsfCyALHwwfCyALHyALCwABQyAKHAAF3AAAAAAAAA=='
command_off: 'sgCiACEKIAoLIAsgCx8gCwsfIAsgCgsgIAoLIAsfIQoLICAKIQoLHwsgCyALHwsgCx8gCwoAAUQgCyAKCyAKIAsgIAoLICAKIAsLHyEKCx8LICAKDB8gCiALCyAKIAsgCiALHwwfIAsLAAFDIAsfCwsgCiALICAKCyAgCiALCx8gCwsfCyAgCgsgIAogCwsfCyALHwwfCyALHyALCwABQyAKHAAF3AAAAAAAAA=='
friendly_name: 'Koridoor light'
a13_key:
command_on: 'sgAAASILIgsMIQwhCyEiCwwiIQsiCwwhIgsMIQwhIgsLIiILIgsLIQwiCyEMISILDCEMIQwAAVUiCyILDCEMIQwhIgsMISILIgsMISILCyILISMKDCEiCyILDCEMIQwhDCEiCwshDCEMAAFWIgsiCwsiCyILISILDCEiCyILCyIiCwsiCyEiCwwhIgsiCwwhDCEMIQwhIgsLIgshDAABViILIgsMIQsiCyIhCwwhIgsiCwwhIgsLIgshIwoMISILIgsMIQsiCyILISMKDCEMIQwAAVYiCiILDCEMIQwhIgsLIiILIgsLISILDCEMISILDCEiCyEMCyEMIQwhDCEiCwwABdwAAAAAAAAAAA=='
command_off: 'sgAAASILIgsMIQwhCyEiCwwiIQsiCwwhIgsMIQwhIgsLIiILIgsLIQwiCyEMISILDCEMIQwAAVUiCyILDCEMIQwhIgsMISILIgsMISILCyILISMKDCEiCyILDCEMIQwhDCEiCwshDCEMAAFWIgsiCwsiCyILISILDCEiCyILCyIiCwsiCyEiCwwhIgsiCwwhDCEMIQwhIgsLIgshDAABViILIgsMIQsiCyIhCwwhIgsiCwwhIgsLIgshIwoMISILIgsMIQsiCyILISMKDCEMIQwAAVYiCiILDCEMIQwhIgsLIiILIgsLISILDCEMISILDCEiCyEMCyEMIQwhDCEiCwwABdwAAAAAAAAAAA=='
friendly_name: 'My room light'
a14_key:
command_on: 'sg80AAwjIwwjDAwjIwwjDAwiIwwjDAwjDCMjDA0jDCIkDA0jDCMMIwwjIwwMAAFgDCMMIwwjDCMAAAAA'
command_off: 'sg80AAwjIwwjDAwjIwwjDAwiIwwjDAwjDCMjDA0jDCIkDA0jDCMMIwwjIwwMAAFgDCMMIwwjDCMAAAAA'
friendly_name: 'Parent room light'
a15_key:
command_on: 'shw0ACQMDSIkDCQMDSMkDCQMDSMMIyQMDCMNIyQMDSMNIyQMDSMNIwwAAWENIwwjDCMMIw0jJAwAAAAA'
command_off: 'shw0ACQMDSIkDCQMDSMkDCQMDSMMIyQMDCMNIyQMDSMNIyQMDSMNIwwAAWENIwwjDCMMIw0jJAwAAAAA'
friendly_name: 'WC light'
a16_key:
command_on: 'JgBGAJOUEjgTOBI4EhMSExITEhMSExI5EjgSOBITEhMSExIUEhMSExI4EjgSExITEjkSOBI4EzcSExIUETkSOBITEhMSExIADQUAAAAA'
command_off: 'JgBGAJOUEjgTOBI4EhMSExITEhMSExI5EjgSOBITEhMSExIUEhMSExI4EjgSExITEjkSOBI4EzcSExIUETkSOBITEhMSExIADQUAAAAA'
friendly_name: 'Tv power'
You could use a script in the front end instead, then it only presents as ‘activate’.
so I can just write script and put it in files (it seems better then write Custom UI Tiles)
And is it possible to see just one point from this list? Don’t know why, but there is several lines for A/C (4) and 2 for floor heat. And I need just one (all controls are available inside it)
I am getting trouble by searching a person who could write a python script for me. Maybe someone here would like to do that? Or may be there is some already written scripts?
Maybe someone knows how it can be changet without scripts?