Howdy! I'm trying to use Masquerade to publish an on/off relay to Occupatum. I can get the Masquerade plugin to update its state from 0 to 1 depending on the on/off state of the device, but the Occupatum device doesn't follow its changes. Now I think it's because in the device details the On State isn't updating, but I can't find any way to get it to update, nor am I 100% sure that this is what would mark that room as occupied in Occupatum.
Here's the device output:
- Code: Select all
10 Aug 2023 at 13:26:14
Script address :
allowOnStateChange : False
allowSensorValueChange : False
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : masqValueSensor
displayStateId : sensorValue
displayStateImageSel : NoImage
displayStateValRaw : 1.0
displayStateValUi : 1.000000
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 231565974
globalProps : MetaProps : (dict)
com.flyingdiver.indigoplugin.masquerade : (dict)
SupportsOnState : true (bool)
SupportsSensorValue : true (bool)
SupportsStatusRequest : false (bool)
baseDevice : 1209817393 (string)
deviceClass : plugin (string)
devicePlugin : nl.rjdekok.indigoplugin.RFXCOM (string)
masqSensorSubtype : Generic (string)
masqState : onOffState (string)
matchString : (string)
reverse : false (bool)
id : 1340321052
lastChanged : 2023-08-10 13:13:50
lastSuccessfulComm : 2023-08-10 13:13:50
model : Value Sensor Device
name : Garage - Occupied Lock Masquerade
onState : False
ownerProps : com.flyingdiver.indigoplugin.masquerade : (dict)
SupportsOnState : true (bool)
SupportsSensorValue : true (bool)
SupportsStatusRequest : false (bool)
baseDevice : 1209817393 (string)
deviceClass : plugin (string)
devicePlugin : nl.rjdekok.indigoplugin.RFXCOM (string)
masqSensorSubtype : Generic (string)
masqState : onOffState (string)
matchString : (string)
reverse : false (bool)
pluginId : com.flyingdiver.indigoplugin.masquerade
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
sensorValue : 1.0
sharedProps : com.indigodomo.indigoserver : (dict)
states : States : (dict)
onOffState : off (on/off bool)
sensorValue : 1.000000 (real)
subModel :
subType :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsOnState : True
supportsSensorValue : True
supportsStatusRequest : False
version : None
Here's the print out of the device itself (although I have tried it with other on/off devices too)
- Code: Select all
10 Aug 2023 at 13:46:27
Script address : 000000
batteryLevel : None
buttonConfiguredCount : 0
buttonGroupCount : 0
configured : True
description :
deviceTypeId : EMW100Appliance
displayStateId : onOffState
displayStateImageSel : PowerOn
displayStateValRaw : True
displayStateValUi : on
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 231565974
globalProps : MetaProps : (dict)
nl.rjdekok.indigoplugin.RFXCOM : (dict)
address : 000000 (string)
unit : 1 (string)
id : 1209817393
lastChanged : 2023-08-10 13:13:50
lastSuccessfulComm : 2023-08-10 13:13:50
ledStates : []
model : EMW100 Appliance
name : Garage - Occupancy Hold
onState : True
ownerProps : nl.rjdekok.indigoplugin.RFXCOM : (dict)
address : 000000 (string)
unit : 1 (string)
pluginId : nl.rjdekok.indigoplugin.RFXCOM
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
sharedProps : com.indigodomo.indigoserver : (dict)
states : States : (dict)
onOffState : on (on/off bool)
subModel :
subType :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsOnState : True
supportsStatusRequest : True
version : None
I've attached a couple of screenshots of the states and config in case they help. Also I've tried it with different device types (such as a z-wave relay) but with the same results. I suspect I've just not got something configured correctly, but I'm drawing a blank on what that is. Any ideas?