Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95402

Script Fail ''NoneType' object has no attribute 'is_on''

$
0
0

@cherryghost wrote:

Hi, I have simple automation that triggers my Nest to a certain temp for an hour when my daughters room is under 18 degrees. Was working last week, dont know why its started failing now. The script fails without automation triggered or forced.

My script:
‘1548859227197’:
alias: ‘Nest: 1 Hour Boost test’
sequence:

  • data:
    temperature: ‘22’
    service: climate.set_temperature
  • delay: 01:00:00
  • data:
    temperature: ‘16’
    service: climate.set_temperature

Automation:

  • id: ‘1573080097272’
    alias: XXs Room Trigger
    description: Trigger 1hr heating if temp below 18
    trigger:
    • below: ‘18’
      entity_id: sensor.temperature_158d000224cd36
      platform: numeric_state
      condition: []
      action:
    • service: script.1548859227197

Log entry
2019-11-13 12:53:58 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1824194960] ‘NoneType’ object has no attribute ‘is_on’
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 133, in handle_call_service
connection.context(msg),
File “/usr/src/homeassistant/homeassistant/core.py”, line 1233, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File “/usr/src/homeassistant/homeassistant/core.py”, line 1258, in _execute_service
await handler.func(service_call)
File “/usr/src/homeassistant/homeassistant/components/script/init.py”, line 139, in service_handler
if script.is_on:
AttributeError: ‘NoneType’ object has no attribute ‘is_on’

On latest Hass version. Any help appreciated

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>