Im trying to get the extra device info from Zanzito into HA for a few automations. I have Zanzito setup now working fine, it provides me the location and battery level at the moment.
I seen a post about getting more info like charging and that using topic zanzito//device_info
Ive added this to a mqtt sensor and when i look at the logs I see it is sending the information but looks like it is hitting a 255 charector limit and/or having trouble with the time format. Has anyone else ran into this?
Sensor:
- platform: mqtt
state_topic: "zanzito/my_cell/device_info"
name: 'S9 Status'
Logs:
da@hass:/home/homeassistant/.homeassistant$ cat home-assistant.log
2018-04-08 17:18:51 ERROR (MainThread) [homeassistant.components.device_tracker.mqtt_json] Skipping update for following data because of missing or malformatted data: {"time":1523225917,"device_info":"Samsung SM-G9 65U (8.0.0)","charge_type":"None","battery_charging":false,"battery_level":74,"current_foreground_app":"Zan zito","screen_locked":false,"screen_on":true,"screen_orientation":"Portrait","current_wifi":"\"xx\"","c urrent_operator":"AT&T"}
homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity id: sensor.mqtt_sensor. St ate max length is 255 characters.