#is script.inovelli_led something that it is referencing out of somewhere else?

1 messages ยท Page 1 of 1 (latest)

cinder linden
#

is script.inovelli_led something that it is referencing

snow remnant
#

it's a script for doing the LED lights

cinder linden
#

Right, do I need to have that present elsewhere?

#

or are you defining it in that block?

snow remnant
#

i have the script loaded

cinder linden
#

I'm looking through this, the github link as well and I'm not seeing a separate file or anything that I'd have to put in some script dir

#

does the giant sequence portion need to go in scripts.yml?

cinder linden
#

ah that makes more sense

#

yeah that one worked, thank you

cinder linden
#

Oh

#

No it didn't, I don't know what I did but I didn't put in the scripts.yaml, I just went back did that and reloaded scipts and got this

#
Source: config.py:443
First occurred: 11:01:04 AM (5 occurrences)
Last logged: 11:48:58 AM

Invalid config for [script]: expected a dictionary. Got OrderedDict([('default_config', {}), ('homeassistant', OrderedDict([('packages', OrderedDict())])), ('tts', [OrderedDict([('platform', 'google_translate')])]), ('http', OrderedDict([('use_x_forwarded_for', True), ('trusted_proxies', ['172.30.33.2'])])), ('group', OrderedDict([('garage', OrderedDict([('name', 'Garage'), ('entities', ['cover.garage', 'sensor.garage_status'])]))])), ('automation', [OrderedDict([('id', '1605131350180'), ('alias', 'Turn on entryway lights at sunset'), ('descriptio.... (See /config/configuration.yaml, line 14).
Invalid config for [script]: [zwave_integration] is an invalid option for [script]. Check: script->zwave_integration. (See /config/configuration.yaml, line 14).
Invalid config for [script]: [entity_id] is an invalid option for [script]. Check: script->entity_id. (See /config/configuration.yaml, line 14).```
snow remnant
#

oh

#

try adding inovelli_led: above the mode: parallel

#

ie:

#
inovelli_led:
  mode: parallel
  variables:
    # REQUIRED to be one of these options: "zwave", "ozw", "zwave_js"
    zwave_integration: "zwave_js"
...
cinder linden
#

wait should I have just created inovelli_led.yaml or something?

snow remnant
#

that's how i do it

cinder linden
#

I don't have a scripts directory, just the scripts.yaml so I copied the contents

#

but I will make the folder

snow remnant
#

script: !include_dir_merge_named scripts/

#

i use that in my config

#

putting it in scripts.yaml should technically work

#

if you add that line

cinder linden
#

not yaml familiar

#

I have ```script: !include scripts.yaml

#

do I just do the !include_dir_merge_named after scripts.yaml?

snow remnant
#

hold on, i don't want you breaking your scripts ๐Ÿ˜›

cinder linden
#

I have none ๐Ÿ˜›

#

oh I got it

#
  !include scripts.yaml
  !include_dir_merge_named scripts/```
snow remnant
#

dunno if that'll work

cinder linden
#

okay I reloaded and got no errors with that

snow remnant
#

cool

#

good to know that works

cinder linden
#

although configuration > scripts doesn't show that script, not sure if it should

#

in this case

snow remnant
#

it should

cinder linden
#

woo! then that didn't work

#

I'll just do the dir_merge and not the scripts.yam

#

hmmm, so I changed it to ``` script: !include_dir_merge_named scripts/

#

still getting that error from above

snow remnant
cinder linden
#

it shows in scripts now

#

โค๏ธ

#

NOW I strugglebus through the automation

snow remnant
#

the automation's easy

#

you should be able to build it via the UI

cinder linden
#

oh the paste you sent, starting on line 246 it isn't indented, so there are visual errors in VSCode

#

missing property "sequence"

#

property entity_id is not allowed

#

do I just need to indent that whole section?

snow remnant
#

which paste?

#

oh

#

ya indent that

#

actually no that should be the right formatting

cinder linden
#

okay, the reload parsed it all correctly, just VSCode yelling at me

snow remnant
#

VSCode says it's good on my end ๐Ÿ˜›

cinder linden
#

if they don't matter then I will ignore.

snow remnant
#

those are all valid, ignore the errors

cinder linden
#

I blame...err....the internet!

snow remnant
#

set the language mode to 'Home Assitant' ๐Ÿ˜‰

cinder linden
#

already is

#

๐Ÿค”

cinder linden
#

@snow remnant tell me if I'm wrong about this, but to make the automation, I just have it triggered when cover.garage attribute Door State is Open

#

I'm at that point confused about the Trigger ID, from, to, for

snow remnant
#

yup

cinder linden
#

Door State doesn't really have a range, are From and To just "Open"

#

Although, I would also like it to trigger when door state is unknown

snow remnant
#

from closed

#

would do

cinder linden
#

oh does that specify when state goes "from" closed "to" open

#

I thought it was a range of states that would trigger....I'm dumb

snow remnant
#

if you do "from: closed" it'd trigger if it was 'closed' then goes unavailable or opening opened open

cinder linden
#

OH

#

so I don't put anything in the others

snow remnant
#

correct

cinder linden
#

do I put anything in Trigger ID?

snow remnant
#

this in the UI?

cinder linden
#

yes

#

it seems optional

snow remnant
#

ya leave it blank

#

your action will be 'call service'

#

the service will be script.inovelli_led

cinder linden
#

okay

snow remnant
#

and it should have stuff for you to fill in

cinder linden
#

it doesn't D:

#

I was just about to ask if I have to customize the script

snow remnant
#

hit the 3 dots

#

and switch to yaml

cinder linden
#

then just

#
  entity_id: zwave.dimmer_family_room
  color: purple
  dimmer: "true" # Set to "false" for the non-dimmable switch.
  duration: 10 seconds
  effect: chase
  level: 10```
snow remnant
#

yup

cinder linden
#

but with whatever info?

snow remnant
#
      data:
        entity_id: switch.downstairs_hallway
        color: red
        duration: 2 Minutes
        effect: Pulse
        level: 10
        model: switch
#

^ this is what i use for my garage door being open

#

but i have it set to auto close if opened for more than 15 mins

cinder linden
#

yeah I want this to just act as a reminder if it's open

snow remnant
#

you can set the duration to "indefinite" to keep it going until you turn off the LED via another automation

cinder linden
#

Okay so I need another one for state changed "to closed"

#

Was just about to ask

snow remnant
#

yup

#

to closed

#

effect: off

cinder linden
#

okay, will that disable it or return it to normal function?

snow remnant
#

yup

#

whatever you have the LED set to by default

cinder linden
#

cool

#

and i assume I change model to dimmer since i have dimmers?

snow remnant
#

yup

cinder linden
#

and make a separate data section per dimmer?

snow remnant
#

nope

#

stack em in the entity_id

cinder linden
#

comma separated?

snow remnant
#

entity_id: dimmer1, dimmer2

cinder linden
#

kk

#

weird, all of them are light.location_dimmer

#

swear they were marked as switches idk

snow remnant
#

dimmers are light domain

#

since they dim ๐Ÿ˜›

#

switch is only on/off no inbetween

cinder linden
#

oh

#

duh

#

Okay I tried to "run actions" and it isn't making the pretty lights.

#
data:
  entity_id: >-
    light.entryway_dimmer, light.kitchen_dimmer, light.living_room_dimmer,
    light.master_bedroom_dimmer
  color: orange
  duration: Indefinitely
  effect: Chase
  level: 10
  model: dimmer```
#

tried capitalization on the different bits but that doesn't seem to be it

snow remnant
#

any errors in the log?

cinder linden
#

Didn't see any but I might have not looked in the right place.

snow remnant
cinder linden
snow remnant
#

/config/logs all the way at the bottom

cinder linden
#

Seems like there are quite a few instances of it having trouble updating the cover status as well

snow remnant
#

it's saying parameter 16 doesn't exist on your dimmers

cinder linden
#

I see that, looking at the dimmers there are like 20+ params

snow remnant
#

should be like LED Effect Duration

#

LED Effect Type

#

LED Effect Brightness

cinder linden
#

yes

#

those are all there

snow remnant
#

you using zwavejs2mqtt?

cinder linden
#

the page for zwave device configuration exists and shows all of those, they just don't have numbers

#

no just zwavejs, but I have mqtt installed and can swap between the two

snow remnant
#

try reinterviewing your dimmers first

#

it'll take a hot minute

cinder linden
#

it looks like its specifically for node 11 that its having issues?

snow remnant
#

oh ya

#

maybe you clumped a GE switch/dimmer in there?

cinder linden
#

er, all 4 are inno red, they all came in the same shipment

#

looks like node 11 was missing some info, its reinterviewing

#

that one had a weak connection before I added the booster

#

its still showing as unknown manufacturer/model

#

but even looking at it, it still shows all the available configuration params

#

the reinterviews were quick and now "run actions" works

#

lots of chasing orange light switches

#
data:
  entity_id: >-
    light.entryway_dimmer, light.kitchen_dimmer, light.living_room_dimmer,
    light.master_bedroom_dimmer
  effect: Clear
#

okay so it worked when I did "run actions" but it isn't working now testing it

snow remnant
#

pretty sure it's "Off" to stop em

#

so what you can do now is hit the trace button to find out why it didn't trigger

cinder linden
#

yeah so it shows 5 minutes ago I manually ran it

#

I'm thinking instead of cover.garage and Attribute Door State

#

I should have used sensor.garage_status

#

yeah that got it to trigger

#

However now I the garage door is stuck in "opening" even though it is closed....hmmmm

snow remnant
#

when you view it in yaml it should look like this:

#
platform: state
entity_id: cover.garage_door_controller
from: closed
cinder linden
#

seems like my garage door integration just shat the bed

snow remnant
#

ooof

cinder linden
#

won't open/close and it is stuck in state "opening"

snow remnant
#

ya it's a safety thing, can't command it while in motion

cinder linden
#

does it think its in motion until it receives "open"?

snow remnant
#

yes

cinder linden
#

oh I guess I didn't leave it open long enough

#

looks like it takes ~30 seconds to update from when the physical door is open

#

can't say I've ever pulled the car in or out in under 30 seconds so that's fine

snow remnant
#

you can if you floor it

cinder linden
#

oh I'm sure I could

#

just not that I ever have or will intentionally

snow remnant
#

lol

cinder linden
#

but both worked, thank you for your help as always

snow remnant
#

no problem man

cinder linden
#

now to add another two dozen notifications to the dimmers so I forget what all of them are for

snow remnant
#

lol

#

i also use the mobile app to push notifications to my phone(s)

cinder linden
#

I have the mobile app, is there a way to clear a notification without doing so manually?

#

IE just show a notification that its open and then disappear when it closes?

snow remnant
#

yup you can make them timeout

cinder linden
#

but with an indefinite amount of time?

snow remnant
#

you can swipe em away

cinder linden
#

no no no

#

well, maybe eventually

cinder linden
#

bookmarked, thank you

cinder linden
#

@snow remnant is the little control button on the dimmer usable for functions? Was thinking if the lights are showing the door is open a single press could trigger it to close?