Ahh ok thanks, I'll have more time to really dive into this tomorrow.
I don't use HA, but It should be pretty easy to adapt.
I assume that there is a way to send and receive device states via MQTT ?
Where I have multiple ways to control a device, I normally control it directly, that way the other control methods get the state feedback from the device and all are sync'd up.
Just a thought, if you already have hasp devices connected to MQTT on /hasp topic then you may want to change the topic on the MQTT in node to a specific device, rather than hasp/# e.g. hasp/test/#
That way the flow will not try to hijack your existing devices
HA has a couple of ways to get and send states, the most supported is via HA node. Looking at what you made I could probably get it to work using code from a function I had setup for openHASP. Good point about hijacking other devices, I have some HASPOne and openHASP devices already setup around the house. The plan is to replace HASPOne with openHASP.
If you setup a test HASP device and modify the main MQTT in node to hasp/test/# you should be OK.
If you can recreate your existing layouts using my flow then existing devices can be added later.
This has given me some ideas around managing multiple different setups, I may need to explore. At the least I could make the root topic configurable in the theme settings.
Happy to help you come up with a good way to interface with HA devices, I could then add this to the flow for the benefit of others.
Looking at what you've created gives me ideas to make what I have better. Currently I have a page for each device, that's because each device is specific to a room but there are some pages (weather,time and solar) that are shared and go out the broadcast topic.
Weather and Time are included in my standard header.
Depending on how much info solar needs you might repurpose the notification area (1st third of the header area.) Or create a new popup that could be added to the menu.
You can create a unique layout per device with the flow, but what I do is have the same pages sent to all screens. The idle handling then sets each screen to a defined HOME page for the room it is in. Other "rooms" can still be selected from the menu.
I like the idea of the idle screen and I was thinking of using the idle screen to do the time and weather. In addition to the outside temperature I also show the room temperature as well. If I move the Time and weather to an idle screen I can then have some pages setup for each specific room and have some shared pages as well. Like the kids room and the guest bedroom don't need access to certain screens that the master bedroom, great room and theater would.
Don't forget you can also have tabs within a page - Using openHASP with Node-Red - #42 by smcgann99
@thatkide Do you use a weather API and if so which ?
I'm looking at creating a more detailed weather page, currently using UK met office API, but for anyone overseas I'm thinking that Open weather Map might be a good option ?
Originally I was using the weather data from home assistant but that stopped working recently. So I've been playing around with openweathermap in node-red. I'm in the process of updating my weather flow to worl with how owm presenta information(like the various codes they have for rain).
@thatkide I haven't had much time to progress the weather addon, and just wondered if you had made any progress with yours
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.