Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 99102

MQTT and migrating from openHAB to Home Assistant

$
0
0

@4integration wrote:

Hi,

I am migrating from openHAB to Home Assistant and would like to get some input on MQTT

In openHAB I have devices (ot Items in openHAB) configured like this

Number TotalPowerSensorWatt      "Total Power Watt" <energy> {
  channel="mysensors:power:gateway:sensor-total-power:watt", 
     mqtt=">
       [rabbitmq:/myhouse/power/sensor/total:state:*:Power,sensor=${itemName},location=total watt=${state} ]" }	

So when the device (a sensor in this case) get a changed state/measure it will post an event based on a template.
Here it will post:

  • To the topic "/myhouse/power/sensor/total"
  • With the payload "Power,sensor=TotalPowerSensorWatt,location=total watt=754"

How can I accomplish this in the best way in HA?

Note: I have MQTT connection enabled

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 99102

Trending Articles