User Tools

Site Tools


openhab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
openhab [2019/07/23 17:53]
ian
openhab [2020/02/13 22:55] (current)
Line 20: Line 20:
 then then
   var int _azimuth = astro_sun_local_position_azimuth.getStateAs(QuantityType).toUnit('°').intValue   var int _azimuth = astro_sun_local_position_azimuth.getStateAs(QuantityType).toUnit('°').intValue
-  if (_azimuth < 110) rfxcom_socket_Socket_1_0_2298B1K0117D25_state.sendCommand(ON)+  if (_azimuth < 110) rfxcom_socket_Socket_1_0_2298B1K0117_state.sendCommand(ON)
 end end
  
Line 27: Line 27:
   Item network_pingdevice_tv_online changed to ON   Item network_pingdevice_tv_online changed to ON
 then then
-  if (astro_sun_local_phase_name.state == "DAYLIGHT"rfxcom_socket_Socket_1_0_2298B1K0117D25_state.sendCommand(ON)+  if (astro_sun_local_phase_name.state == "DAYLIGHT"rfxcom_socket_Socket_1_0_2298B1K0117_state.sendCommand(ON)
 end end
  
Line 37: Line 37:
   var int _azimuth = astro_sun_local_position_azimuth.getStateAs(QuantityType).toUnit('°').intValue   var int _azimuth = astro_sun_local_position_azimuth.getStateAs(QuantityType).toUnit('°').intValue
   logInfo("Sun Moved", "Azimuth: {}", _azimuth)   logInfo("Sun Moved", "Azimuth: {}", _azimuth)
-  if (astro_sun_local_phase_name.state == "DAYLIGHT" && _azimuth > 110 && network_pingdevice_tv_online.state == OFF) rfxcom_socket_Socket_1_0_2298B1K0117D25_state.sendCommand(OFF)+  if (astro_sun_local_phase_name.state == "DAYLIGHT" && _azimuth > 110 && network_pingdevice_tv_online.state == OFF) rfxcom_socket_Socket_1_0_2298B1K0117_state.sendCommand(OFF)
 end end
  
Line 44: Line 44:
   Item astro_sun_local_phase_name changed from DAYLIGHT   Item astro_sun_local_phase_name changed from DAYLIGHT
 then then
-  rfxcom_socket_Socket_1_0_2298B1K0117D25_state.sendCommand(OFF)+  rfxcom_socket_Socket_1_0_2298B1K0117_state.sendCommand(OFF)
 end end
 </code> </code>
  
  
openhab.1563918797.txt.gz · Last modified: 2020/02/13 22:55 (external edit)

free spam filter