Change the look of switch

can i change the mamad light to look like the gatewey light?

this is my config:

switch:

  • platform: broadlink
    host: 192.168.1.61
    mac: ‘xxxxxxx’
    timeout: 15
    switches:

    Will work on most sony TVs:

    tv_sony:
    friendly_name: “Sony Tv Power”
    command_on: ‘JgA0AVESFRIoEykTKBMVEikSFRMoExUSFhIVEhUAAztREhYSKRMpEikSFRIpExQTKRIVExUSFRMVAAM7UBIVEygTKRIpEhUTKRIVEioSFBMVExUSFQADPFATFRIoEykSKRMUEygTFRMoExQTFRMUExUAAzxPExUTKBMoEygTFRMoExQTKBMVExQTFRQUAAM8UBIVEygTKBMoExUTKBMVEikTFBMVEhUTFQADPE8TFBMpEikTKBMUEykSFRMoExUSFhMUExUAAzpRExUSKRMoEygTFRIpExQTKBMVExQTFRMUAAM9TxIVEygTKBMpEhUTKBMVEygUFBMVEhUTFAADPFATFBMpEikTKBMUEygTFRMoExUSFRMUExUAAzxPExUTKBMoEygTFRMoExUTKBMVExQTFRMUAA0FAAAAAA==’
    command_off: ‘JgA0AVATKBMoEykSKRMUEygTFRMoExQTFRMUExUAAyhPEykSKRMoEykTFBMpEhUTKBMVEhUTFRIVAAMoUBMoEygTKBMoExUTKBMUEykSFRMVEhUTFAADKU8TKBMoEykTKRIVEygTFRMoExQTFRMUExUAAydQEykSKRMoEygTFRIpExQTKBMVExQTFRMUAAMpTxMoFCgTKBMoExUTKBMUEykSFRMUExUTFAADKFATKBMoEykSKRMUEygTFRMoExQTFRMUExUAAyhQEykSKRMoEygTFBMpEhUTKBMVExQTFRIVAAMpTxMoEygTKBMoExUTKBMVEikTFBMVEhUUFAADKFATKBMpEikSKRIVEykSFRMoExQTFRMVEhUAAyhQEikSKRMoEygTFRIpEhUTKRIVExYSFRIVAA0FAAAAAA==’

    mamad_light:
    friendly_name: “mamad light”
    command_off: ‘shwyABcRGCEHERghBxAYIQchBxAYIQcRFxAYIQchBhEXERcRGBEYEBgQGBAYEBgiBiIGEBjIAAAAAAAA’
    command_on: ‘sigyABkPGh8JDhofCQ4aHwkfCQ4aHwkPGg4aHwkfCQ4aDhoOGg8aDxoOGg4aHwkPGQ8ZDxrGAAAAAAAA’

Check here for assumed_state: https://home-assistant.io/docs/configuration/customizing-devices/

In customize you can change the mdi:icon to a light bulb.

  customize:
    switch.tv_sony:
      icon: mdi:power

Will give you IMO, a neat looking power button also image

    switch.mamad_light:
      icon: mdi:lightbulb

Will give you image

See https://materialdesignicons.com/ for icon options.

1 Like

Further from the icon change you also can change from switch toggle to look like input_boolean on right hand side picture by using assumed_state: false in customize:


https://materialdesignicons.com/
  customize:
    switch.tv_sony:
      friendly_name: Sony TV
      assumed_state: false
      icon: mdi:lightbulb
1 Like

thx its working

Can I also change the proximity. home to be a budget and to show up like sensor on the top view?

if it is under sensor platform, normally HA will show as badge like sun.sun

Hi !

Might it be possible to change also actual switch outlook, i dont want that lightning outlook, but the default one…

After some digging (on this forum), found this that does the trick :

homeassistant:
customize_domain:
  light:
    assumed_state: false