sidoh / esp8266_milight_hub

Replacement for a Milight/LimitlessLED hub hosted on an ESP8266
MIT License
947 stars 220 forks source link

possible to send command simply by http POST without JSON (on, off, color RGB in hexa...) µ? #704

Closed tparvais closed 3 years ago

tparvais commented 3 years ago

Hello

It's difficult for me to use HTTP HTTP from my ESPEasy firmware.

is there a way to send command via simple HTTP post ? like this http://192.168.0.2/gateways/device_ID/Group/command

with command = ON, OFF, 0xaabbCC (RGC code) without json

thank you

sidoh commented 3 years ago

Hi @tparvais!

Unfortunately I don't foresee this being something I implement. I think the API supporting multiple input/output formats is not worth the complexity tradeoff given the embedded setting. If you use something like Node-RED, you could pretty easily make a translation gateway, though.