I am using a Homematic CCU3 with Respberrymatic and have got a system variable on the ccu3 which I want to read the state of to a sensor. I am using the custom component Homeamtic IP Local in HA. this is what I have in configuration.yaml:
I am not sure if the entity_id is correct, the device names from the list in HA is not the right one, what do I have to use here ? do I have to fetch the system variables from HM before the value_template ?
read in the README of the component no “hahm” marker in description in system variable is needed for a binary sensor. still not sure if entity_id is correct.
The entity ID should be listed under Settings - Devices & Services - Integrations - Homematic(IP) Local.
For a Template Sensor I think it should look like this:
I’m no expert on templating so I’m not too sure what you are trying to achieve. You could try using the Template Editor under Developer Tools to verify your template.
hey sota, thanks for replying. the code is sadly not working. “state” is not allowed at that point.
hmip_ccu3_001F9D89909069 is the device id of the homematic ip local ccu3, I checked that.
I am trying to implement a sensor which shows in the UI if the alarm is switched to poteniially on or off. maybe there is an easier way of showing the state of a HM system variable on the HA UI.
the event string in the template editor for my example is showing the following:
state_attr is working on an entity and not on an device. Where did you find the attribute or why do you thing that there is an entity with this attribute?
BUT The custom component Homeamtic IP Local has the system variable already directly as entities. Just activate them on the device (there might be more than one CCU devices, search for the hidden SV in all of them). Here e.g. you can see one own SC Dutycycle (not needed anymore), so not activated.