Page 1 of 1

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

Posted: 24 Sep 2019, 21:30
by JR01
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

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

Posted: 04 Oct 2019, 13:00
by HarpieC
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!

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

Posted: 12 Oct 2019, 04:07
by oarchie
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?

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

Posted: 12 Oct 2019, 09:13
by JR01
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.

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

Posted: 13 Oct 2019, 11:06
by HarpieC
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.