Platform information:
- Hardware: OrangePi
- OS: ARMBIAN 5.38 stable Ubuntu 16.04.5 LTS 3.4.113-sun8i
- Java Runtime Environment:openjdk version “1.8.0_152”
- openHAB version:2
Issue of the topic: Need help for switching ON Item, when another one is switched on
Recieving Item:
Switch SW4_gHidden “SW4” (gHidden)
{mqtt=">[broker:/Unten/Bridge/relay/3/set:command:ON:1],>[broker:/Unten/Bridge/relay/3/set:command:OFF:0],<[broker:/Unten/Bridge/relay/3:state:ON:1],<[broker:/Unten/Bridge/relay/3:state:OFF:0"}Item that shall be turned on :
Switch Licht2_gEG_Wohnzimmer “Licht rechts” (gEG_Wohnzimmer)
{mqtt=">[broker:/EG/WoZ1/relay/1/set:command:ON:1],>[broker:/EG/WoZ1/relay/1/set:command:OFF:0],<[broker:/EG/WoZ1/relay/1:state:ON:1],<[broker:/EG/WoZ1/relay/1:state:OFF:0"}
Hello, I’m a little confused with the rules, I have set up Openhab and my sitemaps, items and so on.
Everything is working, but now I’m trying to get a simple rule working, for switching on an item on another item “change”
my code is simple …:
rule “Switch Change ON”
when
Item SW4_gHidden received update
then
Licht2_gEG_Wohnzimmer.sendCommand(ON)
But it doesn’t do anything.
Can someone help ?
Greetings
Raphael
(don’t know why but log’s aren’t working, log files are empty)