Hello.
I want to add Orvibo S20 socket without sepcify it’s IP-adress
But I don’t know how to set customize rule for discovered switch. I can set an “host” and “name” for this “switch” but when I use
switch:
platform: orvibo (withous “host” and “name” params)
how to use customize rule to set the friendly name and put this switch to particular group?
thank u
I am not sure if I understand what you are wanting to do. Is the switch.switch_name consistent between reboots? If it is dependent on IP it may change with each reboot. Docs say that host (IP) is required in config.
If not I would look at trying to use mac address I think, I don’t know if it will work for switch name but should for friendly name.
Maybe edit something like this to the mac address of the switch in your known_devices.yaml file and see if it sticks after a restart.
kitchen_switch:
name: switch_friendly_name
mac: AC:CF:23:50:7C:D3
picture:
track: no
hide_if_away: no
If the switch.switch_name is consistent between boots you can use customise.
Is there any reason not to set a static IP for the switches?