Homematic variables in HA possible?

Hi,
I do my first steps with HA. Actually I need a new Tablet Dashboard for my Homematic and would test Lovelace for this.
Right now I get rfd, wired, HMIP values in HA, but since days I fight with the integration of System variables and CUxD values from RaspberryMatic. I read something about pyhomematic but all the information which I can get in german don realy help to solve my request or are old and may be no more valid.

  1. Is there a solution to integrate all CUxD values into HA?
  2. Is there a solution to integrate all System variables into HA?
  3. Do I need to install pyhomematic seperate. where and how (the CCU3 do not allow me to install this as Addon)?
  4. HA and the CCU3 Addon Redmatic “speak” Node-Red, can this be an common Interface to get all HM values easily into HA?

Regards,
Georg

1 Like

No, not without another piece of software that is capable of communicating with CUxD.

Yes

No.

If it provides access to CUxD stuff, then you could probably use it for that purpose.

Thanks for the quick response. For now It should be more easy to check if I can get the CCU System variables in HA. I read the Homematic document several times but can not follow the example.
´´´
sensor:

  • platform: template
    sensors:
    bedroom_valve:
    value_template: “{{ state_attr(‘climate.leq123456’, ‘level’) }}”
    entity_id: climate.leq123456
    friendly_name: “Bedroom valve”
    ´´´
    Can you give me a hint where I need to Enter this and how to integrate two of my variables?
    1st = SV_Regenmenge = values are 0 - 200
    2nd = SV_Tablet_online_LAN = value are true or false

I tried it now with

sensor:
  - platform: template
    sensors:
     regenmenge:
     value_template: '{{ states.homematic.ccu3.attributes.SV_Regenmenge }}'
     entity_id: homematic.ccu3
     friendly_name: 'Regenmenge aktueller Monat'

still I cant select this endity to create a Dashboard card.

is here any person which can assist me to get the CCU3 variables on my Dashboard?

After weeks of testing I got the values at my Dashboard. To give also other Homematic users an Idea, I add in configuration.yaml.
The CCU3 is detected in Home Assistant as “ccu3”
the CCU3 System variable names are “SV_Gartenwasser Tag aktuell” and “SV_Regenmenge”

sensor:
- platform: template
  sensors:
    gartenwasser:
      value_template: "{{ state_attr('homematic.ccu3' , 'SV_Gartenwasser Tag aktuell') }}"
      entity_id: homematic.ccu3
      friendly_name: "Gartenwasser"
    regenmenge:
      value_template: "{{ state_attr('homematic.ccu3' , 'SV_Regenmenge') | float }}"
      entity_id: homematic.ccu3
      friendly_name: "Regenmenge Monat"
1 Like

Hello Georg1
I have a similar problem and I suspect it is due to a wrong entity. The documentation says:
Add a home assistant automation to connect to the raspberrymatic addon
To reach the raspberrymatic addon after it has been started correctly, a HA automation has to be implemented.

(source: Homematic - Home Assistant)

Create a string variable V_Last_Reboot on the CCU

Creat a new programm on the raspberrymatic addon without any conditions, which executes the following HM-Script with a delay of 30 seconds. The Script needs to be implemented within the section Activity: Then

var obj = dom.GetObject(“V_Last_Reboot”);
string now = system.Date("%d.%m.%Y %H:%M:%S");
obj.State(now);
The raspberrymatic addon will execute all active programs which meet their conditions (none in this case) on every reboot.

Set up a template sensor in Home Assistants configuration.yml, which contains the value of the system variable:
sensor:

  • platform: template
    sensors:
    raspberrymatic_last_reboot:
    value_template: “{{ state_attr(‘homematic.raspberrymatic’, ‘V_Last_Reboot’) or ‘01.01.1970 00:00:00’ }}”
    icon_template: “mdi:clock”
    entity_id: homematic.raspberrymatic
    Attention: You have to change your entity_id and the same value in value_template if you changed the entity_id of your raspberrymatic addon.

Set up an automation which calls homematic.reconnect whenever the sensor variable changes:
automation:

  • id: ‘raspberrymatic_reboot_detection’
    alias: “Raspberrymatic CCU Reboot”
    trigger:
    platform: state
    entity_id: sensor.raspberrymatic_last_reboot
    action:
    service: homematic.reconnect

Where can I see the entity of the Add-On Raspberrymatic?
May be, the entity is not “homematic.raspberrymatic”
I can’ see the variable in HA, in Raspberrymatic I habe create it.
Greetings Christoph
–Sorry for my bad english–

I have solved the problem.
The entity homematic.raspberrymatic comes from the file config.yaml.
In this file it is the parameter homematic and the host-paramter raspberrymatic.
Many greetings Christoph