rbswift

Results 52 comments of rbswift

This works well for me in a similar setup ``` { "accessory": "mqttthing", "type": "temperatureSensor", "name": "Bathroom Temperature", "topics": { "getCurrentTemperature": { "topic": "tele/mirrorheater/SENSOR", "apply": "return (Math.round(JSON.parse(message).BME280.Temperature*2)/2);" } } },...

NaN means "not a number". Maybe you need to change the topic and BME280

This works well for me using Tasmota and iFan03: ``` "topics": { "setRotationSpeed": { "topic": "cmnd/loungefan/fanspeed", "apply": "return (Math.round(message/100*3))" }, "getRotationSpeed": { "topic": "stat/loungefan/RESULT", "apply": "return (isNaN(JSON.parse(message).FanSpeed) ? state.rotationSpeed :...

@pedroxns I didn't even know you could use Homebridge with Alexa. I thought it was only Apple/Siri. Anyway, you could try this if you want to set the fan using...

@bassrock for HomeKit you must configure the light as a separate accessory. You can use the configuration for the sonoff basic switch (not zigbee) from here: https://github.com/arachnetech/homebridge-mqttthing/wiki/Tested-Configurations#Dimmers-and-Switches

only these characteristics are supported by Apple: https://developer.apple.com/documentation/homekit/hmcharacteristic/characteristic_types

Thank you @arachnetech. `null` crashed homebridge but `undefined` seems to work well. Cheers ``` Jul 13 16:34:06 alarm homebridge[2439]: [7/13/2021, 4:34:06 PM] TypeError: Cannot read property 'toString' of null Jul...

Apple need to support new accessories before they can be added to homebridge plugins

Use an apply function on that topic to round the value. See https://github.com/arachnetech/homebridge-mqttthing/blob/master/docs/Configuration.md