You can choose the switch’s type as shown in HomeKit by using this.
You’ll also have to reset the device when changing the type, so ensure you follow this: Resetting Accesories
You might also be able to use globs (like binary_sensor.*_occupancy) to change a lot of switches types at once. But I’m not sure, I’ve never tried.
I’m not able to try any of this right now, but it should work, considering it’s copied straight from the docs.
If you need any help with it, I can have a go, but you can always open a fresh topic or ask in Discord.
I needed to have the correct type selected in my yaml file and then I disabled the homekit integration. I needed to setup everything into the correct rooms again but they worked as outlets correclty.
hi when you say correct in your yaml file what did you add to change from switch to outlet, thanks
see part of my config
homekit:
filter:
include_entities:
- light.living_room_side_lights_both
- switch.haa_living_room_glass_light
- light.wled_fire_ip37_4
- light.wled_2
- sensor.living_room_temperature
- binary_sensor.living_room_smoke
- binary_sensor.pir_living_room
Although keep in mind only changing your yaml doesn’t change anything in homekit. I had to disable the integration, restart HA, turn the integration back on and then restart HA. It means going through and moving everything around room etc but it works.
hi I still get config error in config see below if it makes sense to you thanks
bad indentation of a mapping entry at line 119, column 7:
- binary_sensor.pir_office
I didn’t see your reply - sorry about that!
If you’re still having this issue it might be because of your indentation of entity_config for switch.haa_31_3d_printer and type: outlet.
Your post formatting messed up so it’s hard to tell.
Try using the Preformatted Text button again, or use gist.github.com instead.
Hi @gid204
It might be worth re-writing it from scratch just as a sanity check.
Your configuration is complex, but I can’t immediately see anything wrong.