Hello all and thanks to resoai for his excellent work!
I am trying to arm alarm when click on alarm tile and only show the pop-up alarm if the status is different to “disarmed”. I have made the following modification in main.js but it doen’t work.
Please, can anybody help me? I am just beginning with Tile Board.
$scope.entityClick = function (page, item, entity) {
switch (item.type) {
case TYPES.ALARM:
if (entity.state != "disarmed")
{
return $scope.openAlarm(item, entity);
}
return $scope.actionAlarm("alarm_arm_away", activeAlarm, alarmEntity);
}
hi Mr @resoai. How to “format” the sensor value to a “Text Description”? For example I would like to show a temperature sensor when the value is below 26, replace the value 26 to comfortable or hight than 28 shows a text Hot something like that. I have successfully make the value changing its color based for the reading, but I have never managed to “mapping” a text to a value, could u please guide me through this? Thank you!
You can define customStyles as a function and return the object containing backgroundColor or any other styles depending on the state. There are a few examples of it in this thread.
Hi resoai, for the moment what I have done is add the sensor as a switch. So I can turn on the AC. But once I turn on I can’t turn it off.
No when it’s on what I can do is up and down the fan speed and I can see other functions like Cool , fan mode… ect but can’t change. My setup is AC linked to Sensibo access point.
What’s the best resource for checking the js file format for errors? Struggling big time with getting anything to work beyond a basic sensor without crashing my whole dashboard. Trying jshint in Atom but it keeps coming up with (jshint) errors. Same add-on in NP++ does not seem to do anything as removing a comma at the end of a section reports no error.