Hi,
I’m using iPhone X and this week I started automate my apartment with the amazing home-assistant.
Automatically I got the chromecast devices I have around the apartment and I added more several Wake On Lan switches, as well as the Switcher V2, which is a smart switch for the boiler.
I was noticed that not all of the things were automatically synced with the Home app on the iPhone and I wondered why and how to fix this.
Does anyone know why this happens?
How can I add the chromecast switch, for example, to the Home app?
I didn’t do any automation, only the code I showed here.
I thought it will work automatically because I refer the turn_on to the actual turn_on in the switch and same as for the turn_off.
Well in your template switch definition, there is some logic, right?
Does it work if you call the service from the developer tools, Service section in Home Assistant?
Looking at the above, I would expect you would need some kind of automation, but I have to admit, I have not worked with template switches, but see that there are some references
OK, I solved it! @Piggyback I took your advice and used the Developer Tools in the HA. Only by that, I could find the right solution.
So after a lot of work and help, by email, with @TomerFi and thanks to you, @Piggyback, I could solve this.
adding to the configurations.yaml the following lines:
I have a PR open with home-assistant for incorporating a new and more stable version of the Switcher V2 component called switcher_kis.
It already passed all the required tests and it’s waiting for a code-review, after that it would be eligible for merge and becoming an “official ha component”.
1 mandatory switch entity for on/off.
8 optional sensor entities for presenting the schedule slots status.
Managing the device and schedule’s will be done via the services at the component level (switcher_kis).
No group, script, input_select and any of the other entities created by the current switcher_aio component will be created.
The front-end will be entirely up to the user.
That would be amazing, it means that with the right configuration, you would be able to tell Alexa, Siri and all of them something like:
“Hey Siri, turn on the Boiler for 30 minuets”
Do you have an ETA for this so come out?
And will it be on the Add-Ons Store?
@nadav
It’s a lot of code, so I’m sure the code-review will take a long time.
So far it’s been about two weeks, I hope it will be over soon but I don’t know for sure when will it be.
As far as Alexa and other digital assistants, you can have it control the switcher like so (works great for me):
Create 4 scripts calling the 4 switcher_aio services:
switcher_aio.turn_on_15_minutes
switcher_aio.turn_on_30_minutes
switcher_aio.turn_on_45_minutes
switcher_aio.turn_on_60_minutes
Name them respectively:
boiler for 15 minutes
boiler for 30 minutes
boiler for 45 minutes
boiler for 60 minutes
Share these scripts with your digital assistant via its HA integration,
If the integration can’t handle script entities, you can wrap them with a scene or a template switch.
Here’s what I did, It’ll probably won’t fit you “as-is”, basically because instead of calling the services, I made the scripts go through automations (which is very redundant), but you can check out the concept regardless.
I’ve configured the switcher_aio, I created the above script entities and wrapped them up with scene entities.
I also added a fifth scene named boiler for 1 hour which is of course identical to the boiler for 60 minutesscene.
I’m currently working on migrating the switcher device integration from the switcher_aio custom component to the new switcher_kis built-in component.
This solution will not be maintained in the future,
So if you just starting with switcher, I would suggest starting with the built-in component.
So you won’t have to migrate in the future.
Hi @TomerFi,
I just tested the built-in component switcher_kis with the Switcher Power Plugs and it is working properly.
My problem is that I have 3 Power Plugs and I didn’t manage to configure all 3 devices with the built-in component, if I using the switcher_heater as custom component I can define all 3 Power Plugs.
Does the new component switcher_kis support multiple devices?