Report battery correctly for samjin multi sensor
{
"name": "attr/uniqueid"
},
- {
- "name": "config/battery",
- "awake": true
- },
{
"name": "config/on"
},
{
"name": "config/reachable"
},
+ {
+ "name": "state/battery"
+ },
{
"name": "state/lastupdated"
},
],
"example": {
"config": {
- "battery": 100,
"enrolled": 1,
"on": true,
"pending": [],
"modelid": "multi",
"name": "Multipurpose Sensor",
"state": {
+ "battery": 100,
"lastupdated": "2021-01-14T11:13:45.367",
"open": false
},
{
"name": "attr/uniqueid"
},
- {
- "name": "config/battery"
- },
{
"name": "config/offset"
},
{
"name": "config/reachable"
},
+ {
+ "name": "state/battery"
+ },
{
"name": "state/lastupdated"
},
],
"example": {
"config": {
- "battery": 100,
"offset": 0,
"on": true,
"reachable": true
"modelid": "multi",
"name": "Multipurpose Sensor",
"state": {
+ "battery": 100,
"lastupdated": "2021-01-14T11:34:57.853",
"temperature": 2096
},
{
"name": "attr/uniqueid"
},
- {
- "name": "config/battery"
- },
{
"name": "config/on"
},
{
"name": "config/reachable"
},
+ {
+ "name": "state/battery"
+ },
{
"name": "state/orientation",
"description": "<p>The orientation as [X, Y, Z].</p> <p><b>Note:</b> These are the raw device values, it's not known what they represent, they are in range -1400&ndash;1400.</p>"
],
"example": {
"config": {
- "battery": 100,
"on": true,
"reachable": true
},
"modelid": "multi",
"name": "Multipurpose Sensor",
"state": {
+ "battery": 100,
"lastupdated": "2021-01-14T11:35:42.744",
"orientation": [
12,
