zxdavb / ramses_cc

HA integration for CH/DHW and HVAC systems that use the RAMSES II RF protocol
GNU General Public License v3.0
80 stars 17 forks source link

Add impersonation support to send_packet service #194

Closed Kars-de-Jong closed 3 months ago

Kars-de-Jong commented 5 months ago

This change adds support for impersonation using the send_packet service.

I use it to send fan_demand packets from my faked CO2 sensor, because ramses_rf doesn't support that yet.

Kars-de-Jong commented 5 months ago

@zxdavb I processed your comments, could you have another look?

zxdavb commented 5 months ago

@Kars-de-Jong I'm curious - why couldn't you solve this use-case with a remote?

Kars-de-Jong commented 5 months ago

That's a good question... I just assumed the HRU needs to see both co2_level and fan_demand packets from the same device.

Another reason, now that I am considering it: you have to predefine the commands in a remote, which is not very suitable for fan_demand packets, since you specify the demand percentage - you would need to create 100 commands for it.

So, it would still be nice if you would merge this PR.