new homie controller & plug-in (C014 & P086)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

new homie controller & plug-in (C014 & P086)

#1 Post by JR01 » 24 Sep 2019, 21:30

HarpieC wrote: 13 Sep 2019, 18:31
, just inquiring on how you are doing with the new versions. Just to tell you, I am really looking forward to it - in the process of building a ESP_Easy / shelly / other --> homie --> homeBridge --> Messenger controller on Node-Red.

Wishing you well with the coding!

Will be watching for changes here: https://espeasy.readthedocs.io/en/lates ... #p086-page
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

HarpieC
Normal user
Posts: 22
Joined: 20 Mar 2016, 20:33

Re: new homie controller & plug-in (C014 & P086)

#2 Post by HarpieC » 04 Oct 2019, 13:00

Sorry for the delay ... still work in progress.
I think you still have to wait a bit.
I had to finish the contrib-homie-convention node first.

So in the meantime you can tryout the new node (this is my first custom node and a early beta / if not alpha)

https://flows.nodered.org/node/node-red ... convention

I already found a few minor bugs but let's see ....
Feedback desperately needed and appreciated!

oarchie
New user
Posts: 4
Joined: 15 Aug 2017, 03:16

Re: new homie controller & plug-in (C014 & P086)

#3 Post by oarchie » 12 Oct 2019, 04:07

Hi All,
I am trying to read a DHT22 device and control the speed of a fan using the homie receiver mqtt on espeasy.

The DHT reader is working.

I have defined a device as a generic homie receiver.
I have defined Function#1 with the event FanSpeed, type integer.
The other three functions are left blank.

I have exposed the mqtt controls using:

Code: Select all

on MQTT#Connected do
 timerSet,1,60
 Publish homie/%mac_int%/$homie,3.0
 Publish homie/%mac_int%/$name,%sysname%
 Publish homie/%mac_int%/$stats/interval,60
 Publish homie/%mac_int%/$stats,uptime,signal,cpuload,freeheap
 Publish homie/%mac_int%/$nodes,DHT,FAN
 Publish homie/%mac_int%/DHT/$name,DHT22
 Publish homie/%mac_int%/DHT/$properties,Temperature,Humidity
 Publish homie/%mac_int%/DHT/Temperature/$name,Temperatur
 Publish homie/%mac_int%/DHT/Temperature/$unit,°C
 Publish homie/%mac_int%/DHT/Temperature/$datatype,float
 Publish homie/%mac_int%/DHT/Humidity/$name,rel. Luftfeuchtigkeit
 Publish homie/%mac_int%/DHT/Humidity/$unit,%rel.H
 Publish homie/%mac_int%/DHT/Humidity/$datatype,float
 Publish homie/%mac_int%/FAN/$name,FanSpeed
 Publish homie/%mac_int%/FAN/$properties,FanSpeed
 Publish homie/%mac_int%/FAN/FanSpeed/$name,Speed
 Publish homie/%mac_int%/FAN/FanSpeed/$settable,true
 Publish homie/%mac_int%/FAN/FanSpeed/$datatype,integer
 Publish homie/%mac_int%/$state,ready
endon
and I am using the subscribed event:

Code: Select all

on FAN/FanSpeed do
 PWM,13,%eventvalue1%,0,200
 homieValueSet,1,1,%eventvalue1%
 Publish homie/%mac_int%/FAN/FanSpeed/%eventvalue1%
endon
Is this what you have in mind?

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: new homie controller & plug-in (C014 & P086)

#4 Post by JR01 » 12 Oct 2019, 09:13

This could work, but this tread is about the controller for homie and plugin for homie that will do all you did now with rules automatically, following the homie standard.
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

HarpieC
Normal user
Posts: 22
Joined: 20 Mar 2016, 20:33

Re: new homie controller & plug-in (C014 & P086)

#5 Post by HarpieC » 13 Oct 2019, 11:06

Perhaps the docs can help:

https://espeasy.readthedocs.io/en/lates ... #c014-page

https://espeasy.readthedocs.io/en/lates ... #p086-page

This should do all the homie stuff for you.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests