I didn’t found how to disable sparklines especially for mysensor devices. I tried to enter the sensor id for name but this didn’t work.
Missing some documentation on this.
-
[Solved] How to use pimatic-mysensors devices with xAttributeOptions displaySparkline
-
@Heizelmann I use this for my kwh sensor:
{ "id": "kwh-meter", "name": "kWh meter", "class": "MySensorsPulseMeter", "nodeid": 8, "sensorid": 1, "appliedVoltage": 230, "xAttributeOptions": [ { "name": "watt", "displaySparkline": true }, { "name": "kWh", "displaySparkline": false }, { "name": "ampere", "hidden": true }, { "name": "battery", "hidden": true } ] },
-
@sweebee Thanks for the quick reply. The problem is from where do you get the names and what about the other sensors? Currently I use MySensorsDHT, MySensorsPIR and MySensorsDST.
-
Take a look at the mySensors.coffee and search for your device like the DHT:
@attributes.temperature = { description: "the messured temperature" type: "number" unit: '°C' acronym: 'T' } @attributes.humidity = { description: "the messured humidity" type: "number" unit: '%' acronym: 'RH' } @attributes.battery = { description: "Display the battery level of Sensor" type: "number" unit: '%' acronym: 'BATT' hidden: !@config.batterySensor }
The name =
@attributes.humidity
= humidity (remove the @attributes.) -
@sweebee It works! Thank you very much!
But anyway a normal user needs a documentation for that. May be some developer can add this.
Pimatic and the mySensors plugin works great for me but we should think of all the other users which are not developers. -
I agree, @sweetpi is working on pimatic v0.9 this version supports adding devices trough the GUI. Don’t know if you can set the attribute options there, but it should be an option.
-
A bit tricky for a non-developer to found out for
MySensorsBattery
.{ "id": "MS-Battery", "name": "MS-Batterylevel", "class": "MySensorsBattery", "nodeid": [ 11, 12, 13 ], "xAttributeOptions": [ { "name": "batteryLevel_11", "displaySparkline": false }, { "name": "batteryLevel_12", "displaySparkline": false }, { "name": "batteryLevel_13", "displaySparkline": false } ] }