Publish/subscribe
in raspberry è aperto un servizio MQTT mosquitto
Tipo di Attuatore
avete uno stato
rilevato facendo un
Subscribe MQTT e un Azionamento
inviato facendo un Publish in
MQTT
ON/OFF
Stato
/scsshield/device/Nome Attuatore
/status
mosquitto_sub -h localhost -t '/scsshield/device/Luce Soggiorno/status'
Azionamento
on o off
/scsshield/device/Nome Attuatore
/switch
mosquitto_pub -h localhost -t '/scsshield/device/Luce Soggiorno/switch' -m "on"
mosquitto_pub -h localhost -t '/scsshield/device/Luce Soggiorno/switch' -m "off"
Dimmer
Stato
/scsshield/device/Nome Attuatore
/status
mosquitto_sub -h localhost -t '/scsshield/device/Luce Sala/status'
/scsshield/device/Nome Attuatore
/status/percentuale
mosquitto_sub -h localhost -t '/scsshield/device/Luce Sala/status/percentuale'
Azionamento
on o off e percentuale dimmer
/scsshield/device/Nome Attuatore
/dimmer
mosquitto_pub -h localhost -t '/scsshield/device/Luce Sala/dimmer' -m "on"
mosquitto_pub -h localhost -t '/scsshield/device/Luce Sala/dimmer' -m "off"
/scsshield/device/Nome Attuatore
/dimmer
mosquitto_pub -h localhost -t '/scsshield/device/Luce Sala/dimmer' -m "30"
Serrande/Tapparelle
Stato
/scsshield/device/Nome Attuatore
/status
mosquitto_sub -h localhost -t '/scsshield/device/Serranda Cucina/status'
Azionamento
serranda
/scsshield/device/Nome Attuatore
/percentuale
mosquitto_pub -h localhost -t '/scsshield/device/Serranda Cucina/percentuale' -m "30"
Sensori Temperatura
Stato
la temperatura in °C
/scsshield/device/Nome Attuatore
/status
mosquitto_sub -h localhost -t '/scsshield/device/Sensore Cucina/status'
Richiesta di Lettura temperatura
/scsshield/device/Nome Attuatore
/request
mosquitto_pub -h localhost -t '/scsshield/device/Sensore Cucina/request' -m ""
Termostato
Stato
della temperatura Ambiente in °C
/scsshield/device/Nome Attuatore
/status
mosquitto_sub -h localhost -t '/scsshield/device/termostato/status'
Stato
della temperatura impostata del termostato in °C
/scsshield/device/Nome Attuatore
/temperatura_termostato_impostata
mosquitto_sub -h localhost -t '/scsshield/device/termostato/temperatura_termostato_impostata'
Modalità
del termostato "OFF" , "ESTATE" o "INVERNO"
/scsshield/device/Nome Attuatore
/modalita_termostato_impostata
mosquitto_sub -h localhost -t '/scsshield/device/termostato/modalita_termostato_impostata'
per impostare la temperatura desiderata del termostato
/scsshield/device/Nome Attuatore
/set_temp_termostato
mosquitto_pub -h localhost -t '/scsshield/device/termostato/set_temp_termostato' -m "24"
per impostare la modalità desiderata del termostato
/scsshield/device/Nome Attuatore
/set_modalita_termostato
mosquitto_pub -h localhost -t '/scsshield/device/termostato/set_modalita_termostato' -m "ESTATE"
Gruppi
Stato
/scsshield/device/Nome Attuatore
/status
mosquitto_sub -h localhost -t '/scsshield/device/Zona Giorno/status'
Azionamento
on o off
/scsshield/device/Nome Attuatore
/switch
mosquitto_pub -h localhost -t '/scsshield/device/Zona Giorno/switch' -m "on"
mosquitto_pub -h localhost -t '/scsshield/device/Zona Giorno/switch' -m "off"
Serrature
Azionamento
Sblocca
/scsshield/device/Nome Attuatore
/sblocca
mosquitto_pub -h localhost -t '/scsshield/device/portone/sblocca' -m ""
Campanello
Stato
/scsshield/device/Nome Attuatore
/status
mosquitto_sub -h localhost -t '/scsshield/device/Campanello ingresso/status'