hobbyquaker / node-red-contrib-lgtv

Node-RED Nodes to control LG webOS Smart TVs :tv:
http://flows.nodered.org/node/node-red-contrib-lgtv
MIT License
59 stars 21 forks source link

Cannot send same ID to youtube app twice #25

Open danmed opened 4 years ago

danmed commented 4 years ago

I'm trying to use this to play a specific YouTube video.. and it works great the first time.. However it wont ever play it again unless i first send it another youtube video ID..

I'm sure i'm doing something wrong.. here is my flow..

[{"id":"be17117b.1beb9","type":"lgtv-youtube","z":"41e947de.ae7a98","tv":"8fadd761.3b4388","name":"Livingroom TV","x":800,"y":240,"wires":[]},{"id":"f0a8d714.9e422","type":"api-call-service","z":"41e947de.ae7a98","name":"Turn on TV","server":"a000b75b.0a2c88","version":1,"debugenabled":false,"service_domain":"media_player","service":"turn_on","entityId":"media_player.lg_tv","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":530,"y":320,"wires":[["202d9f74.56d5d8"]]},{"id":"942fb5ec.827368","type":"server-state-changed","z":"41e947de.ae7a98","name":"tidyup boolean","server":"a000b75b.0a2c88","version":1,"entityidfilter":"input_boolean.tidyup","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":180,"y":240,"wires":[["c94c7d04.22e758"]]},{"id":"c94c7d04.22e758","type":"switch","z":"41e947de.ae7a98","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":240,"wires":[["d7b2b05d.f13e68"]]},{"id":"202d9f74.56d5d8","type":"delay","z":"41e947de.ae7a98","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":680,"y":320,"wires":[["6f2c1a6a.b3b47c"]]},{"id":"d7b2b05d.f13e68","type":"api-current-state","z":"41e947de.ae7a98","name":"Is TV on?","server":"a000b75b.0a2c88","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.front_room_television_template","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":520,"y":240,"wires":[["6f2c1a6a.b3b47c"],["f0a8d714.9e422"]]},{"id":"179318e4.41ba5f","type":"api-call-service","z":"41e947de.ae7a98","name":"","server":"a000b75b.0a2c88","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.tidyup","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":950,"y":320,"wires":[[]]},{"id":"6f2c1a6a.b3b47c","type":"change","z":"41e947de.ae7a98","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"yybhG3c50b4","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":160,"wires":[["be17117b.1beb9","179318e4.41ba5f"]]},{"id":"8fadd761.3b4388","type":"lgtv-config","z":"","host":"192.168.2.230"},{"id":"a000b75b.0a2c88","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]