Hi, I am new to Home Assistant and need some help. This is my first post, so please be easy on me. I have been using Homeseer for several years now and wanted to try something new. I liked what I read about Home Assistant and had the Raspberry Pi laying around so I said why not. The more I use it, the more I understand, and the more I like it.
Pertinent details:
Home Assistant 0.113.3
HassOS 4.11 Ver: 4.19.127-v7
Raspberry Pi 3 B+
Mosquitto Broker (Add-In) Ver 5.1
Node-Red Ver 7.0.0
I have seen and am following @paulmona and his configuration of Home Assistant as his situation is similar to mine. I have a lot of Z-Wave devices. Mains powered switches and dimmers (Homeseer & Jasco), Battery Door Sensors (Homeseer), Garage Door Controller (Go Control), Thermostat (Trane), Dead Bolts (Schlage Connect BE468CEN716. It is this last item I am having a problem with.
I have left everything configured in Homeseer (pretty robust z-wave control). I have utilized Michael McSharryās very fine mcsMQTT plugin for Homeseer to publish and subscribe these various devices to the MQTT broker. I have experimented with Node-Red to control many of these devices. I have setup a ālistenerā in Node-Red to subscribe to topics from the MQTT broker and put the topic payloads into a debug component so that I can see them in the Node-Red debug panel.
My problem stems from trying to get the status of the lock to update in the Lovelace UI. As I am just starting out I am utilizing the default view Lovelace dashboard. I have not ātaken controlā of the UI at this point.
In my config.yaml file I have the following line:
lock: ! include locks.yaml
In my locks.yaml file I have the following:
- platform: mqtt
name: "Back Door Lock"
unique_id: "BackDoorLock"
command_topic: "CRUD-06/mcsMQTT/Living_Room/Access_Control/Back_Door_Lock/Control"
state_topic: "CRUD-06/mcsMQTT/Living_Room/Access_Control/Back_Door_Lock"
payload_lock: "lock"
payload_unlock: "unlock"
value_template: "{{value[:-2] | lower }}"
qos: 1
retain: false
optimistic: false
In Homeseer the devices use value/status pairs (VSP). The VSP for control of this lock is:
0/unlock
255/lock
the VSP for status of this lock is:
0/Unlocked
255/Locked
I can control the lock (either lock it or unlock it) with the payload of 0 or unlock and 255 or lock using either value (numeric or string). This works from Home Assistant with the device I have setup. The entity is: lock.back_door_lock.
I have followed this topic in the forum regarding getting the UI to update the status:
[Please Help! MQTT Lock Status Won't Update in HA, state_topic works]
When I āLockā the door from Home Assistant the following is what I observe:
-
- Physically the deadbolt locks the door.
-
- The entity (lock.back_door_lock) shows āunlockedā
-
- Node Red debug message shows "CRUD-06/mcsMQTT/Living_Room/Access_Control/Back_Door_Lock āLockedā
What am I doing wrong and how do I fix this?
Thanks for any help coming my way.
Chuck Rudolphy
EDIT:
Did I do something wrong? My post has been up for 3 days and no suggestions. Did I post this in the wrong catagory?