Hmm cant say that i have. This is what my config file looks like for plex:
# IP address of the Plex server
host=10.0.0.4
# Optional, port that the Plex server is running on. Default = 32400
port=32400
# Refresh interval in ms. Default = 5000
refresh=5000
And my items look like this.
String PlexTVStatus "Status [%s]" <video> {plex="PlayerID#state"}
String PlexTVType "Type [%s]" <video> {plex="PlayerID#type"}
And here are my rules for the lights:
import org.eclipse.xtext.xbase.lib.*
rule "Lights on when Stopped"
when
Item PlexTVStatus changed to Stopped
then
sendCommand(zwave_device_9e525cd7_node2_switch_dimmer, 100)
sendCommand(zwave_device_9e525cd7_node3_switch_dimmer, 100)
end
rule "Lights on when Paused"
when
Item PlexTVStatus changed to Paused
then
sendCommand(zwave_device_9e525cd7_node2_switch_dimmer, 10)
sendCommand(zwave_device_9e525cd7_node3_switch_dimmer, 10)
end
rule "Lights dimmed when playing"
when
Item PlexTVStatus changed to Playing
then
sendCommand(zwave_device_9e525cd7_node2_switch_dimmer, 0)
sendCommand(zwave_device_9e525cd7_node3_switch_dimmer, 0)
end