hencou / esphome_components

Collection of own ESPhome components
25 stars 15 forks source link

Any Ideas how to bridge or Sync ID's #24

Closed Bl00d-B0b closed 11 months ago

Bl00d-B0b commented 11 months ago

Hello,

I have rgb_cct Wall switch ID:0x02CB and rgb_cct Remote Control ID:0x1F83. Both paired and manages same groups of Mi LED's.

Is it possible to configure like a "bridge" button, which can see ON/OFF if any of my Switch or remote control ON/OFF light???

Maybe another implementation? Like Syncing buttons... Just try to think... Any Ideas?

Ed

hencou commented 11 months ago

Hi Ed,

Yes this is possible by using HomeAssistant as a "Bridge". See example: https://github.com/hencou/esphome_components/blob/main/example_milight.yaml

Configuration of receiving commands: image

Then configure an automation in HomeAssistant or NodeRED. Eventually you can pass the command straight thru the system and send as "mi_command" to the other ESP module: image

Bl00d-B0b commented 11 months ago

hello,

thanks, i'll try

Bl00d-B0b commented 11 months ago

Is it possible to implement within same esphome, without homeassistant. just in .yaml file.

hencou commented 11 months ago

I don't know how, maybe there is a ESPhome component enabling communication between them? Otherwise an MQTT broker between them can maybe an option.

hencou commented 11 months ago

Closed: implementing a "bridge" is more ESPhome or HomeAssistant related.