Hi,
I’m fairly new to HA, but already love the capabilities … and as someone who works in Open-Source, I love it even more!
I hope someone can help me out, not sure if I made an error or am just expecting the wrong outcome.
Today I have installed the HomematicIP Starterset for Smokedetection, which includes the HomematicIP Access Point.
I added the following to my configuration:
homematic:
hosts:
ip:
ip: 192.168.178.94
port: 2010
In the HA UI, I do see something from HomematicIP, but shouldn’t I be seeing the connected Smoke-Detector, Room definitions, etc?
This is what I see: https://www.dropbox.com/s/f4dw51w5xn2zqri/screenshot.png?dl=0
Thanks for the help
Patrick
Hello Patrick,
welcome to Home-Assistant.
The homematic integration is done with @danielperna84 pyhomematic interface.
Searching for the mentioned HmIP-SWSD device, seem not to be supported currently.
You may ask for help here: https://github.com/danielperna84/pyhomematic/issues/28
Supported smoke detectors are:
“HM-Sec-SD”
“HM-Sec-SD-Generic”
“HM-Sec-SD-2”
“HM-Sec-SD-2-Generic”
Hope this helps.
Just to make sure, do you have this IP access point?
http://www.homematic-ip.com/Downloads/homematic_ip/produkte/access_point_frontal.jpg
If so, then it won’t work. pyhomematic uses the XML-RPC API, which the CCU (the “old” HomeMatic hub) exposes. The new IP access point doesn’t have that, so there is no (compatible) way that allows access to the paired devices. Currently the only way to use IP devices is with a CCU. Sorry.
Yes, this is the Access Point … and I was afraid this was going to be the answer,
As I don’t have the experience with HomematicIP, can I use all the devices which work with the AccessPoint also with the CCU? And if so, can I use RaspberryMatic instead of a CCU?
I believe all IP devices are compatible with the CCU. I don’t know though, if RaspberryMatic will work since I have never looked at it. Some HomeMatic-specific forum might be the right place to ask about that.
From the HASS side there is just one thing your hub needs: XML-RPC (not to confuse with the XML-API addon for the CCU). So if RaspberryMatic is a CCU running on a Pi, then probably yes, it should work. The question then would be, if IP devices will work with the Pi.
Hi, I’m using integration with HomematicIP (CCU3), today i try to trigger an alarm with smoke detector (HM-Sec-SD) to build automation for that event (smoke detected).
When there is no smoke detected state is OFF so i would expect state ON when smoke is detected. But in history i can see state PRIMARY and I’m not sure if it is correct
. Can you provide liste states for that devices?
The parameter that is monitored is SMOKE_DETECTOR_ALARM_STATUS
. According to the documentation it can have the following values:
IDLE_OFF
PRIMARY_ALARM
INTRUSION_ALARM
SECONDARY_ALARM
Here’s the mapping of those values in Home Assistant:
{
0: "off",
1: "primary",
2: "intrusion",
3: "secondary"
}
Thank @danielperna84 you it is clear now. If could tell me one more thing.
Can I call any service homematic.* in HA, which trigger siren/alarm in Smoke detector ? I would like to use alarm sound for some automations in HA
Could you please confirm which device you have? You said you’re using Homematic IP, for which the device would be HmIP-SWSD
. But in the post you also say HM-Sec-SD
, which is not Homematic IP.
You’ll find the available datapoints for HmIP-SWSD
in this documentation. The documentation that includes the HM-Sec-SD
is here.
If I read it correctly, you can’t manually turn on the HM-Sec-SD
because it has no writable parameters. The HmIP-SWSD
on the other hand has SMOKE_DETECTOR_COMMAND
and SMOKE_DETECTOR_EVENT
. I assume you can use the homematic.set_device_value
service with the SMOKE_DETECTOR_COMMAND
parameter to turn on the alarm. In the list it says INTRUSION_ALARM
and INTRUSION_ALARM_OFF
. My guess would be, that you have to use numbers to trigger them. 2
would turn the siren on, 1
would turn it off. But you’ll have to figure that out.
Hi Daniel,
Sorry i have mentioned wrong smoke detect model. I have HmIP-SWSD. Thank you for pointing documentation, i will check commands.
Thanks Daniel one more time for your help.
@danielperna84 it works, thank you.
Device HmIP-SWSD , my device ID 000A5A49939596
Maybe this will help somebody
To invoke intrusion alarm use this below:
address: 000A5A49939596
channel: 1
param: SMOKE_DETECTOR_COMMAND
value: 2
invoke Smoke_Test
address: 000A5A49939596
channel: 1
param: SMOKE_DETECTOR_COMMAND
value: 3
To disable sound/alarm you can use
address: 000A5A49939596
channel: 1
param: SMOKE_DETECTOR_COMMAND
value: 0
or
address: 000A5A49939596
channel: 1
param: SMOKE_DETECTOR_COMMAND
value: 1
1 Like
@danielperna84 is it possible to set parameter GLOBAL_BUTTON_LOCK (eTRV-2 thermostat) from HA (0.108.3).
Parameter GLOBAL_BUTTON_LOCK (lock thermostat) comming from pdf
address: 000a18a996f62d
channel: 0
param: GLOBAL_BUTTON_LOCK
value: true
Logs in HA below
2020-04-13 14:06:17 ERROR (SyncWorker_12) [pyhomematic.devicetypes.generic] HMGeneric.setValue: GLOBAL_BUTTON_LOCK on 000A18A996F62D:0 Exception: <Fault -5: 'Invalid parameter or value'>
I don’t know for sure, but I think for this type of parameter you should use the homematic.put_paramset service.
It’s not working , is it possible that some parameters (GLOBAL_BUTTON_LOCK) cannot be set via RPC XML ? Or maybe we can check somehow directly on CCU (http request)?
How did the yaml for the put_paramset call look like? Maybe it’s the MASTER
paramset, not VALUES
. But honestly, I really don’t know.
I have try different combinations, changing interface/paramset_key without any luck
Try also including the channel for the address value. So in your case maybe, depending on which channel this parameter is present:
interface: wireless
address: 000a18a996f62d:0
paramset_key: MASTER
paramset:
GLOBAL_BUTTON_LOCK: true
Thanks @danielperna84 That did the trick
interface: ip
address: 000a18a996f62d:0
paramset_key: MASTER
paramset:
GLOBAL_BUTTON_LOCK: true
Thanks again!