Closed theyo-tester closed 4 months ago
Hi,
I expect this is the same issue as this one: https://github.com/hencou/esphome_components/issues/22 The command is not always correctly parsed, but corrected in code later on.
WHat you can do: test with the "on_command_received" part in yaml as shown in the example: https://github.com/hencou/esphome_components/blob/main/example_milight.yaml Does this shows you the right commands in HomeAssistant events?
Thank you for the response, hencou. In HomeAssistant I see the same wrong events. In fact this how the issue popped out, because I triggered with those events in the automation and they were night mode commands instead of "brightness up", for instance.
EDIT: I also removed or changed all light entries in the yaml file from fut091 to cct, to have only one type of remote inside and did not exceed 4 entries. I receive now the packages more reliable (less commands get lost), but still, the issue persists; As soon as I long press ANY button, the esph module interprets it as "Received Milight request: {"command":"night_mode"}"
Hi @hencou and great work!
I spent several hours (I do not even want to count them 🤦♂️) in trying to perfectionize and combine the mi lights with the rest of my home and I had great succes, I would say.
My Setup
My intention I tried to go a step further and implement an automation for the received mi light remote comand, to stay in sync with the states of the entities. Thus, as soon someone uses the remote (instead of HA) HA will know about it, but I got into some troubles. The issue My issue now is that when I press AND hold the brightness or temperature buttons (it doesn't matter which one; up, down, left right), the milight hub reports after the first command (which is still correct), multiple "night_mode" commands, until I release the pressed button.
It is interesting, because the b2 (which is the id of the specific command, I suppose) remains unchanged. It may be related to some timing issues...?
my actual yaml configuration of the hub is not much different than the dafult example provided here:
Any help is appreciated! Tank you & BR