How to configure the Week-Mode from Homematic HmIP-eTRV-B Devices

Hello,

I got some HmIP-eTRV Thermostat devices. The Connection between Homeassistant and Homematic CCU works.

Now I would like to use the HmIP Devices in a automation (or at least in a script).

Because I already use week programs in HomeMatic, I would like to set the week program based on my presence.

I read here https://github.com/danielperna84/pyhomematic/issues/139 that it should work with “put_params”. But I tried it with no luck.

This is my Device in Homeassistant:
current_temperature: 24
min_temp: 4.5
max_temp: 30.5
temperature: 17
current_humidity: 37
operation_mode: auto
operation_list: manual,auto,boost
battery: High
rssi_device: -55
mode: null
voltage: false
id: 000A98A9A9C97B
interface: ip
friendly_name: 000A98A9A9C97B
supported_features: 129

As you can see, I don’t have a lowering or holiday mode (just manual, auto and boost). And I would like to avoid to control everything through homeassistant, because with the week programs it is self-sufficient if CCU or Homeassistant is not working.

If I try it like this:


{
“interface” : “ip”,
“address” : “000A98A9A9C97B”,
“paramset_key”:“MASTER”,
“paramset”: {“WEEK_PROGRAM_POINTER”:2}
}
it’s not working. But I also couldn’t find any error messages in CCU nor HA (maybe at least someone could tell me how I could debugg that).

Any Ideas?

I would like to get the Script working and then automate it with my presence detection.

Thanks.
Jens

I did some investigation and opened an issue on github (https://github.com/danielperna84/pyhomematic/issues/238) because I’m getting the following error in debug log (/config/home-assistant.log):

2019-04-15 22:08:33 DEBUG (SyncWorker_11) [homeassistant.components.homematic] Calling putParamset: ip, 002018A99C2418, MASTER, {'WEEK_PROGRAM_POINTER': 2}
2019-04-15 22:08:33 DEBUG (SyncWorker_11) [pyhomematic._hm] ServerThread.putParamset: Exception: <Fault -3: 'Unknown Paramset: MASTER'>;

/config/configuration.yaml:

logger:
  default: warn
  logs:
    homeassistant.components.homematic: debug
    pyhomematic: debug

Taking note of this thread’s age, but for the sake of completeness and for others like me to have an answer documented:

This works for me to change the week program (to “2”) on an HmIP-eTRV-B Valve:

interface: HMIP
address: '00201A49B76484:1'
paramset_key: Values
paramset:
  ACTIVE_PROFILE: 2
1 Like

Thanks - very helpful - its getting colder and with hybrid mode being introduced at my work I wanted to change heating programmes based on room occupancy - this is very helpful!

I did have to add

rx_mode: BURST

In addition good to note that “interface” is case sensitive and needs to mirror the exact setting from the Homematic config file

This is how it works for me as well. Is it also somehow possible to change the weekly profiles for all thermostats at the same time?

/EDIT: This is how it works for me across multiple devices

service: homematic.set_device_value
data:
channel: 1
address: INT0000004
param: ACTIVE_PROFILE
value: ‘1’
value_type: int