Hi everybody!
Due to couple of reasons, i’m planning on migrating my light control system from thingsboard to home assistant. I already did some research and hass seems to support mqtt, json and postgresql.
I have system installed, so i’m intalling the hass through apt-get way.
However, i have couple of questions:
I have arduino sending pir sensor data and light switch presses through MQTT
i have arduinos subscribed to MQTT topic to receive json boolean list like this:
{“group1”:“false”,“group2”:“true”,“preset”:5}
and in thingsboard, i had a list of presets, which worked like this:
- arduino sending button press number 3
- thingsboard receiving number 3 pressed
- thingsboard fetches preset 3 (the number pressed)
- thingsboard sends values from inside the preset 3 (the list of booleans and the preset number) as json
- arduino receives the list and applies the requested settings.
In thingsboard, i had the presets (devices inside thingsboard) act as a place to store that preset’s list of light settings, and i could use REST to change those lists for each preset. can i achieve that in hass too?
I’m new to home assistant, so pardon my possible stupid questions.