PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 44 forks source link

NodeMCU + PCF8574 in Homebridge #236

Closed Whozzurdaddy closed 2 years ago

Whozzurdaddy commented 2 years ago

Hi,

Newby here and newby in electronic in general, I've take on a brave DIY project to have my blinds automated in Homekit, Homebridge and Domoticz.

Those blinds are Somfy with IO transmitter/recepters so I had no choice.

I've managed so far to have 8 remotes controlled by 16 relays linked to 2 PCF8574, themselves linked in serial to a NodeMCU v3 (GPIO 4 and 5 - D1 and D2).

The blinds or remotes are set up in DOMOTICZ, they appear and work fine there. They are created as dummy switches with virtual sensors that execute each a command on/off ("http://XX.XX.XX.XX/control?cmd=PCFPulse,X,0,1000")

The NodeMCU is configured by ESPEASY with l2C to find the PCF8574. No devices are in ESPEASY as the NodeMCU only accept 12 devices.

ESPEASY and DOMOTICZ use MQTT protocol on WIFI.

Both HOMEBRIDGE and DOMOTICZ are installed on a Raspberry 4.

The next step is to set the devices to appear in HOMEBRIDGE. I've installed eDomoticz Plugin and is set on localhost on port 8080. A room has been set in DOMOTICZ (IDX2) and is set also in the plug in.

The accessories won't show in HOMEBRIDGE.

Can only HOMEBRIDGE support PCF8574 ? And do you see anything obvious I am doing wrong ?

Thanks for your help.

Whozzurdaddy commented 2 years ago

No need to answer this issue...

Found the solution : It was really obvious and it made me search for a day.

The identification of the MQTT server had not been set properly in HOMEBRIDGE.

Everything is explained in the advanced settings of the plugin eDOMOTICZ. The code described need to be pasted in config in replacement of MQTT "true".