Migration Vera to HA > how to send sensor data from Vera to HA?
-
Maipensatowrote on Jan 18, 2025, 11:23 AM last edited by Maipensato Jan 18, 2025, 6:25 AM
Hi,
I started home automation in 2013 and using Vera controllers from the start. When Reactor plugin became available (super plugin of @toggledbits !!) I transferred all scenes to Reactor.
I must say everything here works still okay and I have a lot of devices, plugins and Reactors. But I fear at some point my Vera's will stop working.
I recognize many of your names here from the Vera forum. I also was banned a couple of years ago.
Recently I decided to switch to Home Assistant. I already transferred some of my zwave devices from Vera to HA and made some new automations.
I must say HA is great and with huge amount of integrations, add-ons, the HACS store and many examples (like blueprints) the opportunites to increase home automation are huge.
HA will be for sure my central system (incl UI)But... the learning curve is quite steap (YAML is completely different from Lua/luup).
So for the time being I will keep my most complex Reactor automations.
I already found how I can connect/integrate Vera for binairy sensors via webhooks (as an example: changes in my home modes are directly send from Vera to HA).Now I also want to use some data like sensors or Reactor variables automatically to HA via https requests (put those in Reactor).
I know I can create virtual sensors in HA via templates.As an example: I have my own PWS with a rainmeter. In Reactor I compare the amount of rain (in mm) in the actual year with historical figures (past 15 years) and calculate the difference actual vs history in % Every day at 0.00h these figures are updated. I defined variables in Reactor and use Multistring plugin (Variable container) to show the data.
I know several specialists in coding with experience in both Vera and HA are active here on this forum.
Who can help me with this ?
-
Have you considered
Reactor - Multi-hub Automation
version?
If not I strongly recommend this path for your automations as it has controllers for both Home Assistant and Vera.
You can still use HA as UI but do all logic in Reactor Multi-hub, no learning curve when you are familiar with Reactor for Vera, you can import your Reactor for Vera into Reactor Multi-hub and set sensor data and variables directly to HA entities. -
@Crille @Maipensato I cannot possibly endorse more positively the standalone MSR. https://reactor.toggledbits.com/docs
I recommend the containered approach having done so just this week after using an RPi for years (since MSR was released). Just a much easier approach.
-
@Crille @gwp1 Thanks for your quick replies and recommendations.
For sure I have considered MSR. Reasons why I did not opt for this:- in the end I want to do everything within HA incl UI so transferring data from Vera to HA is temporary . HA offers a huge amount of integrations and a big community of users and developers
- I run the all inclusive HA OS on a HP thin client. I know there is a Reactor for Home Assistant add-on but read there are issues with it
- Switching from the Vera Reactor to MSR is doable but takes time and it is different. The biggest disadvantage in my case is that MSR can not handle LUA code and my most complex Reactors use quite some LUA code
So this is why I opened a topic here with my specific question.
Any help /'advice ?
-
Another option (maybe more simple? is to retrieve the sensor data from Vera within Home Assistant.
This is the code to switch on a switch:
How do I get the CurrentLevel of a temperature sensor:
serviceId = =urn:upnp-org:serviceId:TemperatureSensor1
How to define the action ? -
@Maipensato said in Migration Vera to HA > how to send sensor data from Vera to HA?:
HA offers a huge amount of integrations and a big community of users and developers
Yep. And it's all available in MSR when you configure the connection between them.
@Maipensato said in Migration Vera to HA > how to send sensor data from Vera to HA?:
The biggest disadvantage in my case is that MSR can not handle LUA code and my most complex Reactors use quite some LUA code
You may find that MSR replaces the need for this level of hand-coding.
@Maipensato said in Migration Vera to HA > how to send sensor data from Vera to HA?:
Switching from the Vera Reactor to MSR is doable but takes time and it is different.
IIRC, there's a script to migrate Vera's Reactor to MSR. I used it several years ago.
I use MSR as my rules engine between Hubitat and HA. HA provides many great integrations as well as controlling some ZWave devices and has the dashboarding I want. Hubitat controls most devices and has some integrations it does better than HA.
In the end it's up to you, of course. I have everything running in Proxmox containers.
-
@gwp1 I have no doubts that MSR is a great tool for sure when you use more than one platform.
But sorry I repeat myself... my goal is to only use Home Assistant in the near future and I will migrate step by step from Vera.
If I can not do all automations in HA I will most certainly seriously consider combining HA with MSR.In the meantime I have found the answers on my question myself.
http luup request to get values of sensor data/variables from Vera.
Example for a rain sensor:Within Home Assistant I created RESTful sensors to get the data in.
And it works great.
3/7