Replies: 2 comments 6 replies
-
I think I realized the answer to half of my question, to create a virtual zone that isn't attached to a physical input, I just use the template platform the way that's already been done for the actual zones like this:
And then I use the MQTT in Home Assistant to set it high and low based on the zigbee sensor, am I on the right track here? |
Beta Was this translation helpful? Give feedback.
-
Okay I've enabled the zone expander using
Then I added two new zones, one will be a sensor for my backdoor triggered by a zigbee device from Home Assistant and the other will be a GPIO input from my smoke alarms. Using the following code:
The smoke alarm one shows its status, though I think I might have the values backwards, but z9 has it's state reported as "unknown" in HA. Any ideas why Zone 9 is having issues? |
Beta Was this translation helpful? Give feedback.
-
I noticed in the new branch you mentioned zone expander emulation and wanted to make sure I understood it correctly:
By adding these two/uncommenting these two section in the yaml file
` #zone expander addresses:
9 - zones 9-16
10 - zones 17-24
11 - zones 25-32
12 - zones 33-40 (for systems with 64 zone support)
13 - zones 41-48 (for systems with 64 zone support)
14 - zones 49-56 (for systems with 64 zone support)
16 - zones 57-64 (for systems with 64 zone support)
expanderAddr1: "10" # 1st zone expander emulator address to use . Set to 0 to disable.
pin: D8
id: pind8
device_class: window
on_press: #pin high=on(open), pin low=off(closed)
dsc.setZoneFault(17,1); #set zone 17 as open
on_release:
dsc.setZoneFault(17,0); #set zone 17 as closed
`
Then the input to pin D8 in this example would "trigger" zone 17 where a high value means that the device is open.
First off that's EXTREMELY cool, second is there a way that I can combine this with some wireless zigbee sensors? It looks like I could using the MQTT payload:
{"zone":<zone#>,"fault":<on:off or 0:1>}
But in that scenario I would need to do something other than use - platform: gpio, right?
Beta Was this translation helpful? Give feedback.
All reactions