arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
466 stars 104 forks source link

state.global : sharing between services of the same custom accessory #499

Open FermedePommerieux opened 2 years ago

FermedePommerieux commented 2 years ago

Is there a way to share variables between services inside a "custom" accessory ("services": []) ?

state.global.* share variables between topics, I would like to share variables between services

something like state.services.*

FermedePommerieux commented 2 years ago

I found a way using codec however I still unable to find a way to use multiple sensors for a single accessory: example : securitySystem sensor 1 = ARRMED/DISARMED sensor 2 = TRIGGERING sensor 3 = Fault sensor 4 = Tampered

is there a way to request a MQTT value directly from a codec ?