Insteon_PLM on Hass.io, Anyone have it working?

If you can send me the messages in the long that have the device address that would be great. The way to do that is
cat home-assistant.log | grep -E '1A.2B.3C'
Replace 1A.2B.3C with the actual address.

Today’s a good day to do this, I’ve got water leaking into the basement and the leak sensor is not just sitting in a puddle, it’s sailed a short distance downstream! The hassio overview page shows “dry” however.

I’ve got the logging set up in configuration.yaml thusly:

logger:
default: warn
logs:
insteonplm: warn
#sleepiq: debug
#homeassistant.components.insteon_plm: debug
#homeassistant.components.light.insteon_plm: debug
#homeassistant.components.switch.insteon_plm: debug
homeassistant.components.binary_sensor.insteon_plm: debug
homeassistant.components.sensor.insteon_plm: debug
#homeassistant.components.fan.insteon_plm: debug

and when I grep for the sensor id I get just this one log item:

core-ssh:/config# cat /config/home-assistant.log|grep -e ‘321d21’
2018-05-25 07:08:07 DEBUG (MainThread) [homeassistant.components.binary_sensor.insteon_plm] Adding device 321d21 entity wetLeakSensor to Binary Sensor platform

As I’d mentioned, I’m pretty sure that I’ve linked the wireless leak sensor to the PLM correctly, but I don’t know a good way to confirm that beyond observing the blinking/beeping when I do the linking.

Any ideas, or is there any other log info I should be looking for?

Change the config line insteonplm: warn to insteonplm: debug'. Also use the uppercase with dot separators cat /config/home-assistant.log|grep - E ‘32.1D.21’`

@roborob any updates

Hi, been on vacation and came home to power outage the following morning that killed internet service even after electricity was restored. I’ve bumped the insteon logging to debug and see if I get more interesting log data. Hopefully will get fiber modem un-bricked tomorrow and can report some results.

OT, anyone know how to set time on hassio on rpi manually? No internet -> no NTP, so hassio has no idea when it is anymore…

Back online here – ISP had to replace several hundred feet of optical fiber due to storm damage.

Right now, my leak sensor is sitting on a wet rag, but is registering “Dry” in Home Assistant.

core-ssh:~# cat /config/home-assistant.log|grep -E '32.1D.21'
2018-06-06 07:10:55 DEBUG (MainThread) [insteonplm.plm] Processing message {'code': 0x57, 'controlFlags': 0xa2, 'group': 0x02, 'address': 32.1D.21, 'linkdata1': 0x01, 'linkdata2': 0x20, 'linkdata3': 0x45}
2018-06-06 07:11:02 DEBUG (MainThread) [insteonplm.plm] Processing message {'code': 0x57, 'controlFlags': 0xe2, 'group': 0x01, 'address': 32.1D.21, 'linkdata1': 0x10, 'linkdata2': 0x08, 'linkdata3': 0x43}
core-ssh:~# 

HomeAssistant version 0.70.1

@roborob Sorry for the delay. There are no ‘wet’ or ‘dry’ messages being received by the PLM. You have the PLM linked to group 2 as a responder which should allow the PLM to receive wet messages but no messages are being received. I would also think you would need the PLM linked to group 1 as a responder but that record is not there. I am not sure this will solve the issue but you can try this (it won’t hurt for sure).

  1. Log into HA and navigate to “Developer tools” -> Services (that is the area at the bottom of the screen and the icon to the far left that looks like at radio giving off a signal).
  2. From the “Service” pull down menu select “insteon_plm.add_all_link”
  3. In the “Service Data” section add the following {"group": 1, "mode": "responder"}
  4. Press the “Call Service” button to start the service. (This will put the PLM in linking mode)
  5. Press the “Link” button on the leak sensor.

This will create a link with the PLM as a responder to group 1. Again, not sure if this will help but it won’t hurt.

I’ll give that a try as soon as I get a chance – probably later today.

BTW, It didn’t get in group 2 intentionally: I’m not even aware how I would do that on purpose. What happened was (I think) that after an update of the insteon components a few versions back, it just appeared there alongside another version of itself. In retrospect, I should have probably unlinked and removed all the existing insteon devices before a major update, but that thought didn’t occur to me a priori.

I tried the procedure from teharris1 post, and after I pushed the button in step 5, the leak sensor blinked promisingly.

Well, I just now put it on a damp rag to do a functional test, and again the sensor’s LED blinked rather profusely, something it hadn’t been doing before. On the Home Assistant dashboard, the water drop icon is no longer “slashed out” and the details show it’s “wet”.

However, I still don’t get anything in the log when I try:

cat /config/home-assistant.log|grep -E ‘32.1D.21’

But as I wrote above, the state on the dashboard is changed and that’s what I was hoping to see.

ed. The sensor’s been dry for a couple hours now, but the state on the dashboard hasn’t changed. Is home assistant waiting for the “dry” signal that the troubleshooting section of the manual seems to indicate will never come?

Problem: Leak Sensor can turn responder on, but
not off

Possible Cause: Leak Sensor is not designed to turn off
responders. This prevents warning lights
or other leak indication devices from
turning off in the event the leak dries.

Solution: None. As designed

If that’s the case, what do I do to reset the state in Home Assistant. If the sensor had turned on a lamp or a blower, I could turn those off from the dashboard, but what about the indicator itself?

Ok, was able to reset the dashboard state of the leak sensor to “dry” by restarting Home Assistant. I guess it must of reloaded all the insteon states on restart. Is there a less drastic way to update the dashboard icon for the leak sensor after the situation has been addressed?

Yes, it would reset the state on reload. I am guessing that the reset on a ‘dry’ message is not being seen. Let me do some more testing. By the way, you should repeat the process above for a ‘heartbeat’ but with group 4 ({"group": 4, "mode": "responder"}) This may help but I think it only sends a heartbeat once a day.

Have a look at this post

I see some changes with the latest version. My Insteon motion sensors now not only appear as motion sensors but also (1) a gear-like thing – that’s apparently a sun and I presume to be the state of the light sensor on the motion detector and shows a status of “On” – and (2) a battery icon with a status of “Normal” – perhaps this would change state if the battery were low.

The new items show up on the Home Assistant Overview page with same Insteon address of the motion sensor, but with “_2” and “_3” appended.

Any official word on how to use these new items?

I also noted that X10 support appeared a version or two ago. Thanks! (Unfortunately for me all my X10 devices are on the other leg of my house wiring, me having assumed that I’d never have to worry about X10 working on the PLM).

@roborob, yes those are the other sensors available in the motion sensor. The battery is (hopefully) obvious and the sun like thing is the light sensor. It senses light and dark. I cannot configure it yet but you can (using other software) set the light sensitivity. Working on an interface were these settings can be made right in HA.

For custom naming purposes (in section “customize:”), what are the sensor types of the battery and light sensors of the Insteon motion sensors?

binary_sensor.1a2b3c_2 = light sensor
binary_sensor.1a2b3c_3 = battery sensor

where 1a2b3c is the Insteon device address of your motion sensor.

1 Like

FYI on a breaking change to both insteon_plm and insteonlocal. Please see this thread and give your input:

I have recently moved over from openhab, because the integration you have done with insteon. It is amazing, thank you for the work!! I have all 29 of my various devices working flawless. I was able to monitor the door sensor battery in hidden door sensor in openhab. Can you explain how to get it going in homeassistant? I have a motion sensor and it is reporting the battery on group 3 just like this post suggests. I have tried different groups to get the battery for the door sensors “address: 1a2b3c_2” etc. and it is not reporting back anything. Are these battery devices different?

Thanks again on the work! You made it worth the hassle to move over.

Battery sensor for the door sensor is not enabled yet. It is in the to do list but not sure when.

Wow, thanks for the quick reply, it’s all good. That and the “fast-off” option are the only features I miss from Openhab. But the door sensor and keypads being responsive enough to trigger devices and automations is worth the switch! I appreciate the work put into this component, it shows. This component is why I switched.
On a side note, the “fast-off” would be a good future feature as well. I used “fast-off” to control under cabinet lights. The kitchen switch kicked the lights on. And an automation also kicked on mqtt under cabinet lights. Turning off the switch would leave them on (ambience lighting). Double taping the switch “fast-off” would turn the under cabinet lights off too, with an automation. Useful for having two switches in one.