did u add example? Wanna have this light slider
its the same as the other ones.
download the files from the link in the first posting and with that link you also have an example
just restarted cam. what is strange is that i can use dashboard and commands work β¦ but hass not
also i see that in hass it also changes correctly the values β¦ like cruise pointe etc . but from hass the cam wont react .
that can only be a problem in the hass frontend or in the browser.
but i have no clue
curl commands work properly β¦ i mean i can also use script with curl commands
can u come in the chat please?
what you do with the dashboard is:
- dashboard sends api to Hass to change input select
- hass gets the api and changes the value
- appdaemon sees that the value is changed
- appdaemon sends the right cgi command to the cam
with the frontend it is this:
- frontend from hass changes the value
- appdaemon sees that the value is changed
- appdaemon sends the right cgi command to the cam
Im getting unable to find widget type on my dashboard. Does this look correct? Permissons are fine
pi@hadash:/home/homeassistant/conf/custom_css/custom_widgets $ ls
baseslider_new baseslider_vertical new_input_slider.yaml vertical_input_slider.yaml
pi@hadash:/home/homeassistant/conf/custom_css/custom_widgets $
pi@hadash:/home/homeassistant/conf/custom_css/custom_widgets $ cd baseslider_new/
pi@hadash:/home/homeassistant/conf/custom_css/custom_widgets/baseslider_new $ ls
baseslider_new.css baseslider_new.html baseslider_new.js
pi@hadash:/home/homeassistant/conf/custom_css/custom_widgets/baseslider_new $
your_vertical_slider:
widget_type: vertical_input_slider
entity: input_slider.alarmminutes
title: Minutes
your_horizontal_slider:
widget_type: new_input_slider
entity: input_slider.alarmhour
title: Hour
you have placed your custom widgets in the custom_css and it should be besides the custom css directly in your conf.
Thanks man appreciate the help. Im getting an error on that page that looks like a package may need to be installed. Its the only page, the others are fine. You got any idea?
2017-09-13 18:22:08.849976 WARNING ------------------------------------------------------------
2017-09-13 18:22:08.850400 WARNING Unexpected error during DASH creation
2017-09-13 18:22:08.850738 WARNING ------------------------------------------------------------
2017-09-13 18:22:08.851702 WARNING Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 788, in get_dashboard
dash = self._conditional_compile(name, skin, recompile)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 731, in _conditional_compile
dash = self._get_dash(name, skin, skindir)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 534, in _get_dash
dash = self._create_dash(name, css_vars)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 422, in _create_dash
dash, layout, occupied, includes = self._create_sub_dash(name, "dash", 0, {}, [], 1, css_vars, None)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 506, in _create_sub_dash
self._add_layout(lay, layout, occupied, dash, page, includes, css_vars, global_parameters)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 396, in _add_layout
widget["parameters"] = self._load_widget(dash, includes, name, css_vars, global_parameters)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 269, in _load_widget
return _resolve_css_params(instantiated_widget, css_vars)
NameError: name '_resolve_css_params' is not defined
2017-09-13 18:22:08.852584 WARNING ------------------------------------------------------------
2017-09-13 18:22:08.853670 INFO function [get_dashboard] finished in 1330 ms
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 422, in start
resp = yield from self._request_handler(request)
File "/usr/local/lib/python3.6/site-packages/aiohttp/web.py", line 306, in _handle
resp = yield from handler(request)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 213, in coro
res = yield from res
File "/usr/local/lib/python3.6/site-packages/appdaemon/rundash.py", line 129, in load_dash
return web.Response(text=response, content_type="text/html")
File "/usr/local/lib/python3.6/site-packages/aiohttp/web_response.py", line 464, in __init__
type(text))
TypeError: text argument must be str (<class 'dict'>)
hmm, i have that error also today, but still everything works.
but that is when i am developing things.
what is on your dashboard?
I get a 500error and the page doesnβt load
what is in the dashboard file?
I was adding it to a page that normally use, didnt have anything special just a few different widgets. I created a new dashboard file with only the widgets to see and this is what I get:
your_vertical_slider:
widget_type: baseslider_vertical
entity: input_slider.alarmminutes
title: Minutes
your_horizontal_slider:
widget_type: baseslider_new
entity: input_slider.alarmhour
title: Hour
layout:
- your_horizontal_slider(2x1), spacer (6x2)
- your_vertical_slider(1x2)
- spacer(8x4)
on the dashboard - I get the blue screen with a message at the bottom
Your Dashboard has the following errors:
a: Error while parsing dashboard '/home/homeassistant/conf/dashboards/a.dash':
a: parser says
a: in "", line 13, column 1: - your_horizontal_slider(2x1), ... ^
a: found character '\t' that cannot start any token while scanning for the next token
Iβve tried without the spacers too
you need to use the derived widget names:
input_select, new_input_slider or vertical_input_slider.
you cant refer to the base widget directly.
i see you had i correct before
and if that still gives errors then my question is if you have copied the derived widgets from my github?
Thank you Rene. Shes workin
your welcome.
i am still creating. my test dashboard with custom widgets now looks like this: