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

Sonoff SC Sensor Data JSON Format #1939

Closed
reloxx13 opened this issue Feb 16, 2018 · 3 comments
Closed

Sonoff SC Sensor Data JSON Format #1939

reloxx13 opened this issue Feb 16, 2018 · 3 comments

Comments

@reloxx13
Copy link
Contributor

Heya,

just got the Sonoff SC JSON from you and it looks like this:

  "StatusSNS": {
    "Time": "2018-02-16T16:18:49",
    "Temperature": 25,
    "Humidity": 83,
    "Light": 10,
    "Noise": 20,
    "AirQuality": 100,
    "TempUnit": "C"
  },

Would it be possible to change it to the layout all other sensor got?

e.g.:

  "StatusSNS": {
    "Time": "2018-02-16T16:18:49",
    "SonoffSC": {
        "Temperature": 25,
        "Humidity": 83,
        "Light": 10,
        "Noise": 20,
        "AirQuality": 100
    }
    "TempUnit": "C"
  },

Other sensors: JSON Status Responses#Sensors

@arendst
Copy link
Owner

arendst commented Feb 17, 2018

Will do

arendst added a commit that referenced this issue Feb 17, 2018
5.12.0b
 * Add Restart time to Status 1 (#1938)
 * Change Sonoff SC JSON
format (#1939)
@arendst arendst closed this as completed Feb 17, 2018
@pablobolomey
Copy link

What way do i get the single sensor values from the sonoff SC
state_topic: 'office/sonoffSC01/SENSOR'
value_template: '{{ value_json.SonoffSC.xxxxxxxx] }}'

@ascillato
Copy link
Contributor

Information in the wiki at https://github.com/arendst/Sonoff-Tasmota/wiki/Home-Assistant#dht22-sensor

curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
5.12.0b
 * Add Restart time to Status 1 (arendst#1938)
 * Change Sonoff SC JSON
format (arendst#1939)
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

No branches or pull requests

4 participants