There was a bug in prior versions. If you update to 0.37.1 You should get a CCU entity, which has all the variables as it’s attributes. That’s a little bit different from the documentation, because before we noticed this wasn’t working it was implemented differently.
What’s missing from the documentation as well is, that when you use a CCU (so not Homegear), you’ll also have to specify the API password of the CCU. Otherwise the CCU rejects the requests HASS is making to check out the variables.
I will update the documentation soon. Until then try out the latest version and have a look at the homematic.set_var_value service (which is used to set bool and numeric variables on the CCU).
The variables are, opposed to what it says in the documentation, NOT displayed as single entities. Somewhere in the frontend you should see one single entity named “wireless”. if you click on that, the element will open and you should see the entities as the attributes.
To use them in automations you have to use templates. I will update the documentation on the weekend and include an example.
You can experiment with templates in the HASS UI. On the lower left there are 5 buttons. The second one from the right (the two angle brackets on grey background) takes you to an interactive template editor. There’s a textarea with some demo-code in it. and the result is shown on the right. There you can paste in the template from one of my examples above, and on the right the result should be displayed. So for example:
Shows True as a result on the right side, which tells me that the battery of the shutter contact is ok. For logic reasons and possible unkonwn states while HASS is starting, I’ve used == "Low" in my sensor-example above. That would create a binary_sensor entity, which is always in off state for as long as the value of the attribute is not High.
An alternative way of doing what I’ve done in the sensor example:
I want to display a homematic variable. For a example var1. The value of var1 can be Ja or Nein. My Question is how can i display the value (Ja or Nein) from var1 in the HA GUI?
The tip wth the interactive template editor is very good.
In my case I have configured the host for wireless devices to have the name “hmrf”. And as you see in the screenshot I have a variable called “Testvariable”.
The template I use looks like this: {{ states.homematic.hmrf.attributes.Testvariable }}
If I paste that code into the template editor, False is displayed on the right side, just like in the CCU entity.
In your case I’m not sure if you really have a boolean variable. On my CCU the variable is defined like this:
But you’re saving your variable is either “Ja” or “Nein”, which indicates that you’re using something different. Although that shouldn’t matter. In that case you would just adjust the template to test something like {{ ...blabla == "Ja" }} or so.
Have a look at your error logs (of HASS). You probably haven’t configured the homematic compoent correctly. As no variables are shown in the entity, it fails to load them.
Actually no, I don’t know what the problem is in that case. Have a look at the log or test your configuration using the check_config script. Maybe this will give you a hint what the error could be. I would guess it’s a syntactical problem, but I can’t tell without seeing the proper indentation. You can post formatted text here in code-blocks. Start and end a code-block with 3 backticks (Grave accent). Like this, but with the correct character (other direction):