Error doing job: Exception in callback async_subscribe..async_mqtt_topic_subscriber(‘stat/sonoffb1/RESULT’, b’{“POWER”:“OFF”}’, 0) at /srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/mqtt/init.py:213
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/events.py”, line 126, in _run
self._callback(*self._args)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/mqtt/init.py”, line 232, in async_mqtt_topic_subscriber
hass.async_run_job(msg_callback, dp_topic, payload, dp_qos)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/core.py”, line 253, in async_run_job
target(*args)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/light/mqtt.py”, line 241, in brightness_received
device_value = float(templatesCONF_BRIGHTNESS)
ValueError: could not convert string to float:
hi looking for some help. I put your configuration as a switch and it works without errors, but i think it needs to go as a light so i can change colors, brigntness. When I put it under light i get errors.
Any guidance?
thank you
I’ve added some extra options so more functions of the lamp can be utilized with hass. I followed the commands over at Github.
Firstly you can change some settings of the lamp like enabling a fade using the mqtt command cmnd/YOUR_SONOFF_LAMP/Fade on,
correct some light intensity with cmnd/YOUR_SONOFF_LAMP/Ledtable on,
change the fading speed with cmnd/YOUR_SONOFF_LAMP/Speed number (for a number 1 to 20, 1=fast),
and change the wakeup duration with you guessed it cmnd/YOUR_SONOFF_LAMP/Wakeupduration seconds (for the number of seconds you want. I’ve set mine to 120, so two minutes).
You can btw set these from within home assistant using the service mqtt.publish and as data {"topic":"cmnd/YOUR_SONOFF_LAMP/Fade", "payload":"on"} for example.
Next there are some Schemes built into Tasmota and I made an input_select and automation for that:
(in configuration.yaml)
Hi, thanks so much for all your work. I’m really new to all this. The new Hass.io is so cool, but I have limited programming experience. I use the interface to create automations. I do have the B1 bulbs flashed with tasmota and able to change all the features from the dashboard including the 4 schemes. My question is, can you help show me what information I put into the action area to make the bulb run one of the schemes? For instance, I have an alarm clock that I can set the time to trigger the bulb at a certain time. I have it turning on and off the bulb with Call Servie, light.turn_on and the service data {“entity_id”: “light.b1”}. How exactly would I tell it to run the number 3 scheme? Or turn on and turn them all red? Remember I’m using the automation interface in hassio so it has a drop down menu for Action Type, Service, and Service Data. If I could see an example, that would be awesome. I’m trying to get my hallway B1 lights (4 of them) to turn on at the alarm clock time and run some cool colors…mainly for the kids when they go to bed and wake up. What nerds we are, well I’ll speak for myself. I guess the other issue is how does the wife turn it back to the normal off-white color when I want them to look normal “so to speak” so she doesn’t start hassling me over the colored hall way when family is over…hahaha. Thanks for any feedback whoever is out there.
Hi, the old fashion way would work for me too, you’re right I might understand it better and the copy and paste is much easier. Still can’t find any example of how to tell the B1 bulb to run a scheme or a fade and then revert back to the normal white color…uh…say…after a delay. If you run across anything, please share. Thanks for response
If you set up scenes for how you want the bulbs to be at each state, eg scene.red and scene.normal you can simply this as the action for a five minute delay…
Hi guys, did you have to reflash the lightbulb with other firmware? If so, where can I get the firmware and how do I flash the bulb? I’m thinking of getting one of the following as an experiment for my home assistant / amazon echo:
Its just an awful lot of money to spend for something that will not work.
hi guys, i trying to achieve color in an automation, between 7PM and 7AM i want to be able to use the Sonoff b1 as a night light. during the day i want to use it as a normal white light. trigger is a binary door sensor.
Are you using the automation editor in the UI to put it together? It looks like you might have an issue with your conditions.
You might try this:
condition:
- condition: time
before: 07:00:00
- condition: time
after: 19:00:00
To troubleshoot your actions, you can use the dev_service tab to call a service with the data you’ve got listed, iron out any issues with the service call, then weave it back into your automation.
Hi, yes i used the UI to put it togeather. My condition seems to work fine, with the trigger and actions. My only problem is color. I cant seem to change the color using automation. I can change color using the HA, UI and via the tasmota console. Thanks.
You may need to make two service calls. First, turn the light on, second, set the colour. Some of my lights do not support changing the colour value while the light is off.