Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further improve Hass integration #4510

Merged
merged 1 commit into from
Dec 2, 2018

Conversation

emontnemery
Copy link
Contributor

@emontnemery emontnemery commented Dec 2, 2018

A major remaining Home Assistant annoyance is error prints when turning off a light because dimmer and RGB keys are missing from the JSON dict:

{"POWER":"OFF"}

A PR on Home Assistant to remove the error prints was rejected: home-assistant/core#18723

This PR instead changes Tasmota to send tele/STATUS message when:

  • power is switched
  • light property is changed
  • state command is received

And also changes Hass configuration to pick light and power status from the tele/STAT JSON dict:

{
  "Time":"2018-12-02T16:51:43",
  "Uptime":"0T00:10:45",
  "Vcc":3.215,
  "SleepMode":"Dynamic",
  "Sleep":0,
  "LoadAvg":999,
  "POWER":"ON",
  "Dimmer":23,
  "Color":"58,0,0,0,0",
  "HSBColor":"0,100,23",
  "Channel":[23, 0, 0, 0, 0],
  "CT":499,
  "Scheme":0,
  "Fade":"OFF",
  "Speed":1,
  "LedTable":"OFF",
  "Wifi":{
    "AP":1,
    "SSId":"SomeWLAN",
    "BSSId":"78:8A:20:D1:0B:21",
    "Channel":11,
    "RSSI":66
  }
}

@arendst arendst merged commit b1a9de5 into arendst:development Dec 2, 2018
@emontnemery emontnemery deleted the hass_rework_light_status branch December 8, 2018 11:46
gemu2015 pushed a commit to gemu2015/Sonoff-Tasmota that referenced this pull request Jan 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants